add a file.exists() check too
This commit is contained in:
parent
624c0e2d08
commit
28ccfb6fe1
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,9 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isExcluded || isThirdPartyIntent) {
|
if (!isExcluded || isThirdPartyIntent) {
|
||||||
|
if (!file.exists())
|
||||||
|
continue
|
||||||
|
|
||||||
val dateTaken = cur.getLongValue(MediaStore.Images.Media.DATE_TAKEN)
|
val dateTaken = cur.getLongValue(MediaStore.Images.Media.DATE_TAKEN)
|
||||||
val dateModified = cur.getIntValue(MediaStore.Images.Media.DATE_MODIFIED) * 1000L
|
val dateModified = cur.getIntValue(MediaStore.Images.Media.DATE_MODIFIED) * 1000L
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue