mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
catch OutOfMemoryError at getting image orientation
This commit is contained in:
parent
cce033f89c
commit
ca5cd986f3
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue