mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-14 09:05:48 +01:00
add a null check to surfaceholder
This commit is contained in:
parent
dccca19844
commit
9e4d53684a
@ -297,6 +297,9 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||
}
|
||||
|
||||
private fun setVideoSize() {
|
||||
if (mSurfaceHolder == null)
|
||||
mSurfaceHolder = mSurfaceView!!.holder
|
||||
|
||||
if (activity == null || !mSurfaceHolder!!.surface.isValid)
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user