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 {