From f79b4d258b52ec91b694eed45cbb031df64bc156 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 21 Jun 2017 19:37:48 +0200 Subject: [PATCH] do not share hidden folder files if showing hidden is disabled --- .../com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt index a192fe8e..4418ea14 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/adapters/ItemsAdapter.kt @@ -157,7 +157,7 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList) { if (file.isDirectory) { - file.listFiles()?.forEach { + file.listFiles()?.filter { if (config.showHidden) true else !it.isHidden }?.forEach { addFileUris(it, uris) } } else {