diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/ViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/ViewPagerFragment.kt index 471c11635..3c95c9927 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/ViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/ViewPagerFragment.kt @@ -102,7 +102,12 @@ abstract class ViewPagerFragment : Fragment() { private fun getLatLonAltitude(path: String): String { var result = "" - val exif = ExifInterface(path) + val exif = try { + ExifInterface(path) + } catch (e: Exception) { + return "" + } + val latLon = FloatArray(2) if (exif.getLatLong(latLon)) {