mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-01 12:06:43 +01:00
avoid accessing mMedium before it was initialized
This commit is contained in:
parent
3ed598c2fd
commit
1e9318a789
@ -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…
x
Reference in New Issue
Block a user