From ece7872f8d4fc49888ff42dfba1f7cc3e325bed5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 15 Jul 2018 16:27:16 +0200 Subject: [PATCH] fix #844, recognize another image panorama declaration --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 13abaf0b5..baea1b753 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -349,7 +349,7 @@ class PhotoFragment : ViewPagerFragment() { isPanorama = try { val inputStream = if (medium.path.startsWith("content:/")) context!!.contentResolver.openInputStream(Uri.parse(medium.path)) else File(medium.path).inputStream() val imageParser = JpegImageParser().getXmpXml(ByteSourceInputStream(inputStream, medium.name), HashMap()) - imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) + imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("True", true) } catch (e: Exception) { false }