moving mMedium definition at the VideoFragment up
This commit is contained in:
parent
b21305cb4b
commit
e7e1c561d8
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue