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 39466790a..073210351 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 @@ -207,9 +207,12 @@ class PhotoFragment : ViewPagerFragment() { loadImage() initExtendedDetails() mWasInit = true - checkIfPanorama() updateInstantSwitchWidths() + ensureBackgroundThread { + checkIfPanorama() + } + return mView }