From 99f14bfee1acde63413ffc4c3638fc36eecf29b9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 18 Jun 2017 19:06:14 +0200 Subject: [PATCH] try reinitializing the mediaplayer when it becomes the selected fragment --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index 2563061d1..ebc0acdee 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -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() }