catch out of memory exceptions at checking if image is a panorama

This commit is contained in:
tibbi 2018-07-24 13:27:37 +02:00
parent e4df3a0cbe
commit cce033f89c

View file

@ -365,6 +365,8 @@ class PhotoFragment : ViewPagerFragment() {
imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("<GPano:UsePanoramaViewer>True</GPano:UsePanoramaViewer>", true)
} catch (e: Exception) {
false
} catch (e: OutOfMemoryError) {
false
}
view.panorama_outline.beVisibleIf(isPanorama && isLollipopPlus())