adding some crashfixes related to extended details
This commit is contained in:
parent
778d1ce71a
commit
e3b921db4d
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue