From 1e9318a7897883206cd0dea356fe5d27663184c1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 2 Oct 2019 12:15:18 +0200 Subject: [PATCH] avoid accessing mMedium before it was initialized --- .../simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index eb44f7d97..86528c15c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -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() } }