fix #844, recognize another image panorama declaration

This commit is contained in:
tibbi 2018-07-15 16:27:16 +02:00
parent a8b1f1935a
commit ece7872f8d
1 changed files with 1 additions and 1 deletions

View File

@ -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<String, Any>())
imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true)
imageParser.contains("GPano:UsePanoramaViewer=\"True\"", true) || imageParser.contains("<GPano:UsePanoramaViewer>True</GPano:UsePanoramaViewer>", true)
} catch (e: Exception) {
false
}