mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
moving mMedium definition at the VideoFragment up
This commit is contained in:
parent
b21305cb4b
commit
e7e1c561d8
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue