catch out of memory exceptions at checking if image is a panorama
This commit is contained in:
parent
e4df3a0cbe
commit
cce033f89c
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue