avoid accessing mMedium before it was initialized
This commit is contained in:
parent
3ed598c2fd
commit
1e9318a789
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue