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 }