mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
do not try displaying empty files
This commit is contained in:
@ -47,7 +47,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||||||
val file = File(fullPath)
|
val file = File(fullPath)
|
||||||
val parentDir = file.parent
|
val parentDir = file.parent
|
||||||
|
|
||||||
if (!file.exists()) {
|
if (!file.exists() || file.length() == 0L) {
|
||||||
invalidFiles.add(file)
|
invalidFiles.add(file)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user