avoid accessing mMedium before it was initialized

This commit is contained in:
tibbi 2019-10-02 12:15:18 +02:00
parent 3ed598c2fd
commit 1e9318a789

View file

@ -688,7 +688,7 @@ class PhotoFragment : ViewPagerFragment() {
panorama_outline.isClickable = !isFullscreen
}
if (mMedium.isPortrait()) {
if (mWasInit && mMedium.isPortrait()) {
photo_portrait_stripe_wrapper.animate().alpha(if (isFullscreen) 0f else 1f).start()
}
}