mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch out of memory exceptions at checking if image is a panorama
This commit is contained in:
@ -365,6 +365,8 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("<GPano:UsePanoramaViewer>True</GPano:UsePanoramaViewer>", true)
|
imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("<GPano:UsePanoramaViewer>True</GPano:UsePanoramaViewer>", true)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
false
|
false
|
||||||
|
} catch (e: OutOfMemoryError) {
|
||||||
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
view.panorama_outline.beVisibleIf(isPanorama && isLollipopPlus())
|
view.panorama_outline.beVisibleIf(isPanorama && isLollipopPlus())
|
||||||
|
Reference in New Issue
Block a user