From cce033f89ccfa7f915e2a65352865c65f0963121 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 24 Jul 2018 13:27:37 +0200 Subject: [PATCH] catch out of memory exceptions at checking if image is a panorama --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index b181e4ebc..735b9d81e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -365,6 +365,8 @@ class PhotoFragment : ViewPagerFragment() { imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("True", true) } catch (e: Exception) { false + } catch (e: OutOfMemoryError) { + false } view.panorama_outline.beVisibleIf(isPanorama && isLollipopPlus())