catch OutOfMemoryError at getting image orientation

This commit is contained in:
tibbi 2018-07-24 14:29:51 +02:00
parent cce033f89c
commit ca5cd986f3

View file

@ -389,6 +389,7 @@ class PhotoFragment : ViewPagerFragment() {
orient = exif2.getTag(ExifInterface.TAG_ORIENTATION)?.getValueAsInt(defaultOrientation) ?: defaultOrientation orient = exif2.getTag(ExifInterface.TAG_ORIENTATION)?.getValueAsInt(defaultOrientation) ?: defaultOrientation
} }
} catch (ignored: Exception) { } catch (ignored: Exception) {
} catch (ignored: OutOfMemoryError) {
} }
return orient return orient
} }