From 11dd5ac5017608756158276b8166e6255e8e2cfc Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 11 Jun 2023 23:24:18 +0200 Subject: [PATCH] make sure we dont try changing view visibility from the bg thread --- app/build.gradle | 2 +- .../gallery/pro/fragments/PhotoFragment.kt | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 87eea602a..e9b893a09 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,7 +78,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:7e9642d830' + implementation 'com.github.SimpleMobileTools:Simple-Commons:988f06df1b' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25' 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 073210351..d094d4ba6 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 @@ -759,9 +759,11 @@ class PhotoFragment : ViewPagerFragment() { false } - mView.panorama_outline.beVisibleIf(mIsPanorama) - if (mIsFullscreen) { - mView.panorama_outline.alpha = 0f + activity?.runOnUiThread { + mView.panorama_outline?.beVisibleIf(mIsPanorama) + if (mIsFullscreen) { + mView.panorama_outline?.alpha = 0f + } } }