catch OutOfMemoryError at getting image orientation

This commit is contained in:
tibbi 2018-07-24 14:29:51 +02:00
parent cce033f89c
commit ca5cd986f3
1 changed files with 1 additions and 0 deletions

View File

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