mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add an additional null check at surfaceholder of video fragment
This commit is contained in:
@@ -302,7 +302,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
|||||||
if (mSurfaceHolder == null)
|
if (mSurfaceHolder == null)
|
||||||
mSurfaceHolder = mSurfaceView!!.holder
|
mSurfaceHolder = mSurfaceView!!.holder
|
||||||
|
|
||||||
if (activity == null || !mSurfaceHolder!!.surface.isValid)
|
if (activity == null || mSurfaceHolder == null || !mSurfaceHolder!!.surface.isValid)
|
||||||
return
|
return
|
||||||
|
|
||||||
initMediaPlayer()
|
initMediaPlayer()
|
||||||
|
Reference in New Issue
Block a user