From ca5cd986f3412f04cdeaa53310952a0fdea8680e Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 24 Jul 2018 14:29:51 +0200 Subject: [PATCH] catch OutOfMemoryError at getting image orientation --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 1 + 1 file changed, 1 insertion(+) 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 735b9d81e..4faa99247 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -389,6 +389,7 @@ class PhotoFragment : ViewPagerFragment() { orient = exif2.getTag(ExifInterface.TAG_ORIENTATION)?.getValueAsInt(defaultOrientation) ?: defaultOrientation } } catch (ignored: Exception) { + } catch (ignored: OutOfMemoryError) { } return orient }