do not try displaying empty files

This commit is contained in:
tibbi 2016-11-17 15:56:50 +01:00
parent db04516773
commit 06f7d8d29d

View file

@ -47,7 +47,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
val file = File(fullPath)
val parentDir = file.parent
if (!file.exists()) {
if (!file.exists() || file.length() == 0L) {
invalidFiles.add(file)
continue
}