moving mMedium definition at the VideoFragment up

This commit is contained in:
tibbi 2019-05-15 09:05:13 +02:00
parent b21305cb4b
commit e7e1c561d8
1 changed files with 1 additions and 1 deletions

View File

@ -122,12 +122,12 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
} }
} }
mMedium = arguments!!.getSerializable(MEDIUM) as Medium
if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT)) { if (!arguments!!.getBoolean(SHOULD_INIT_FRAGMENT)) {
return mView return mView
} }
storeStateVariables() storeStateVariables()
mMedium = arguments!!.getSerializable(MEDIUM) as Medium
Glide.with(context!!).load(mMedium.path).into(mView.video_preview) Glide.with(context!!).load(mMedium.path).into(mView.video_preview)
// setMenuVisibility is not called at VideoActivity (third party intent) // setMenuVisibility is not called at VideoActivity (third party intent)