mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-16 20:10:37 +01:00
add a file.exists() check too
This commit is contained in:
parent
624c0e2d08
commit
28ccfb6fe1
@ -139,6 +139,9 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
||||
}
|
||||
|
||||
if (!isExcluded || isThirdPartyIntent) {
|
||||
if (!file.exists())
|
||||
continue
|
||||
|
||||
val dateTaken = cur.getLongValue(MediaStore.Images.Media.DATE_TAKEN)
|
||||
val dateModified = cur.getIntValue(MediaStore.Images.Media.DATE_MODIFIED) * 1000L
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user