From e7e1c561d8f93059e74de059de80dfee32038df5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 15 May 2019 09:05:13 +0200 Subject: [PATCH] moving mMedium definition at the VideoFragment up --- .../simplemobiletools/gallery/pro/fragments/VideoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index 3b619feab..e836dc549 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -122,12 +122,12 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } } + mMedium = arguments!!.getSerializable(MEDIUM) as Medium if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT)) { return mView } storeStateVariables() - mMedium = arguments!!.getSerializable(MEDIUM) as Medium Glide.with(context!!).load(mMedium.path).into(mView.video_preview) // setMenuVisibility is not called at VideoActivity (third party intent)