mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add a check if the owner file from extended details exists
This commit is contained in:
@@ -20,6 +20,9 @@ abstract class ViewPagerFragment : Fragment() {
|
|||||||
|
|
||||||
fun getMediumExtendedDetails(medium: Medium): String {
|
fun getMediumExtendedDetails(medium: Medium): String {
|
||||||
val file = File(medium.path)
|
val file = File(medium.path)
|
||||||
|
if (!file.exists())
|
||||||
|
return ""
|
||||||
|
|
||||||
val path = "${file.parent.trimEnd('/')}/"
|
val path = "${file.parent.trimEnd('/')}/"
|
||||||
val exif = android.media.ExifInterface(medium.path)
|
val exif = android.media.ExifInterface(medium.path)
|
||||||
val details = StringBuilder()
|
val details = StringBuilder()
|
||||||
|
Reference in New Issue
Block a user