mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch OutOfMemoryError at getting image orientation
This commit is contained in:
@ -389,6 +389,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
orient = exif2.getTag(ExifInterface.TAG_ORIENTATION)?.getValueAsInt(defaultOrientation) ?: defaultOrientation
|
||||
}
|
||||
} catch (ignored: Exception) {
|
||||
} catch (ignored: OutOfMemoryError) {
|
||||
}
|
||||
return orient
|
||||
}
|
||||
|
Reference in New Issue
Block a user