From 8ca190d8ef701cbd4c8f98c2bd3eb6bd1a1f2ec4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 18 Apr 2020 12:26:38 +0200 Subject: [PATCH] do not add a folder to Included ones in a specific case, it is confusing --- .../gallery/pro/adapters/DirectoryAdapter.kt | 6 ------ .../simplemobiletools/gallery/pro/extensions/Activity.kt | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index ec683644d..3ae6643b1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -253,12 +253,6 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList Unit) { val fileDocument = getDocumentFile(path) if (fileDocument?.exists() == true && fileDocument.isDirectory) { fileDocument.createFile("", NOMEDIA) - applicationContext.scanFileRecursively(file) { + applicationContext.scanPathRecursively(file.absolutePath) { callback() } } else {