From 23f77ea19f0082f23f7b9db0c8dd260f5594b3ba Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 8 Jun 2023 19:07:32 +0200 Subject: [PATCH] move photo panorama check on a background thread --- .../simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 5 ++++- 1 file changed, 4 insertions(+), 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 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 }