catch OutOfMemoryError at getting image orientation
This commit is contained in:
parent
cce033f89c
commit
ca5cd986f3
|
@ -389,6 +389,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
orient = exif2.getTag(ExifInterface.TAG_ORIENTATION)?.getValueAsInt(defaultOrientation) ?: defaultOrientation
|
||||
}
|
||||
} catch (ignored: Exception) {
|
||||
} catch (ignored: OutOfMemoryError) {
|
||||
}
|
||||
return orient
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue