diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt index 4fc026c4a..4f65de3ff 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt @@ -126,8 +126,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va val dir = File(d.path) if (dir.exists() && dir.isDirectory) { val res = dir.list { file, filename -> filename == ".nomedia" } - - if (res != null && res.size > 0) + if (res?.isNotEmpty() == true) ignoreDirs.add(d) } }