From 8c57a00947277f0de344eba25c422e0f035bef71 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 17 Nov 2016 14:00:58 +0100 Subject: [PATCH] one minor style change --- .../gallery/asynctasks/GetDirectoriesAsynctask.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) } }