mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-24 15:30:57 +01:00
add an aditional null check at videofragments
This commit is contained in:
parent
64fa74f6cd
commit
9d7834f294
@ -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 New Issue
Block a user