try reinitializing the mediaplayer when it becomes the selected fragment

This commit is contained in:
tibbi 2017-06-18 19:06:14 +02:00
parent 77b7608636
commit 99f14bfee1

View file

@ -95,6 +95,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
super.setMenuVisibility(menuVisible)
mIsFragmentVisible = menuVisible
if (menuVisible) {
initMediaPlayer()
if (context?.config?.autoplayVideos == true) {
playVideo()
}