From bcae7cfd7680088f24867215136e2a3104905389 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 16 Jul 2018 20:15:03 +0200 Subject: [PATCH] do not try setting up exoplayer if it is still null --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d081fd120..de84618b9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -251,7 +251,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S mIsFragmentVisible = menuVisible if (menuVisible && mWasFragmentInit) { - if (!mIsExoPlayerInitialized) { + if (!mIsExoPlayerInitialized && mExoPlayer != null) { initExoPlayer() }