mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
add an aditional null check at videofragments
This commit is contained in:
parent
64fa74f6cd
commit
9d7834f294
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||
}
|
||||
|
||||
override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
|
||||
if (width != 0 && height != 0)
|
||||
if (width != 0 && height != 0 && mSurfaceView != null)
|
||||
setVideoSize()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue