From 75e9093b2632c30abe3f5c2a7c16a9ec6166c46d Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 17 Jun 2020 10:01:30 +0200 Subject: [PATCH] recognize a new type of panoramic photos --- .../simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index 16e709f46..f1b3a6110 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -672,7 +672,8 @@ class PhotoFragment : ViewPagerFragment() { val imageParser = JpegImageParser().getXmpXml(ByteSourceInputStream(inputStream, mMedium.name), HashMap()) imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("True", true) || - imageParser.contains("GPano:FullPanoWidthPixels=") + imageParser.contains("GPano:FullPanoWidthPixels=") || + imageParser.contains("GPano:ProjectionType>Equirectangular") } catch (e: Exception) { false } catch (e: OutOfMemoryError) {