adding some crashfixes related to extended details

This commit is contained in:
tibbi 2020-01-15 20:44:31 +01:00
parent 778d1ce71a
commit e3b921db4d

View file

@ -40,7 +40,12 @@ abstract class ViewPagerFragment : Fragment() {
}
val path = "${file.parent.trimEnd('/')}/"
val exif = ExifInterface(medium.path)
val exif = try {
ExifInterface(medium.path)
} catch (e: Exception) {
return ""
}
val details = StringBuilder()
val detailsFlag = context!!.config.extendedDetails
if (detailsFlag and EXT_NAME != 0) {