mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-05 13:57:45 +01:00
make sure mSurfaceView isnt null when initing media player
This commit is contained in:
parent
98b426d21e
commit
034f3b5c56
@ -95,7 +95,9 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||
super.setMenuVisibility(menuVisible)
|
||||
mIsFragmentVisible = menuVisible
|
||||
if (menuVisible) {
|
||||
initMediaPlayer()
|
||||
if (mSurfaceView != null)
|
||||
initMediaPlayer()
|
||||
|
||||
if (context?.config?.autoplayVideos == true) {
|
||||
playVideo()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user