From 0cad141a5b6d733854315be58a8256d6824d85d2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 1 Nov 2018 21:47:20 +0100 Subject: [PATCH] change the string used for determining if a video is a panoramic one --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index 5f2f7f517..580d06091 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -736,7 +736,10 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S break } } - mIsPanorama = sb.toString().contains("true") || sb.toString().contains("GSpherical:Spherical=\"True\"") + + val xmlString = sb.toString().toLowerCase() + mIsPanorama = xmlString.contains("gspherical:projectiontype>equirectangular") || + xmlString.contains("gspherical:projectiontype=\"equirectangular\"") return }