mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
make sure mSurfaceView isnt null when initing media player
This commit is contained in:
parent
98b426d21e
commit
034f3b5c56
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue