From d61f1d7d1b96e59bc55593e88779137d6e7d90fd Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 17 Mar 2017 23:15:20 +0100 Subject: [PATCH] add the included folders at the scaned ones --- .../kotlin/com/simplemobiletools/gallery/extensions/context.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt index ffe7b3f4b..b62ec01f9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt @@ -74,6 +74,8 @@ fun Context.getParents(): ArrayList { parentsSet.addAll(noMediaFolders) } + parentsSet.addAll(config.includedFolders) + parentsSet.filterTo(parents, { val file = File(it) if (file.isDirectory && file.canonicalFile == file.absoluteFile) { // filter out symbolic links too