From 425d1f77b51e6db7f4352a4a238226dab9c25844 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 8 Nov 2020 21:39:39 +0100 Subject: [PATCH] use the local config variable at folders --- .../gallery/pro/adapters/DirectoryAdapter.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 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 18275b9e8..ceee1c1ab 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 @@ -178,7 +178,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList + val paths = getSelectedPaths().filter { !activity.isAStorageRootFolder(it) && !config.isFolderProtected(it) } as ArrayList RenameItemsDialog(activity, paths) { listener?.refreshItems() } @@ -243,13 +243,13 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList if (success) { if (path.containsNoMedia()) { activity.removeNoMedia(path) { - if (activity.config.shouldShowHidden) { + if (config.shouldShowHidden) { updateFolderNames() } else { activity.runOnUiThread { @@ -308,7 +308,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList