mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
do not try displaying empty files
This commit is contained in:
parent
db04516773
commit
06f7d8d29d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue