From 9ff50cc48aebc11f56932c13af042a64db453fe2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 18 Jan 2021 12:40:39 +0100 Subject: [PATCH] fixing a glitch at caching nomedia folders --- .../com/simplemobiletools/gallery/pro/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index 064e5cab1..8a34e9a53 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -556,7 +556,7 @@ fun Context.getCachedDirectories(getVideosOnly: Boolean = false, getImagesOnly: val folderNoMediaStatuses = HashMap() val noMediaFolders = getNoMediaFoldersSync() noMediaFolders.forEach { folder -> - folderNoMediaStatuses[folder] = true + folderNoMediaStatuses["$folder/.nomedia"] = true } var filteredDirectories = directories.filter {