From 8db3a5007a3e1371bf0389a227a5e619dfe69013 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 15 Apr 2018 08:47:07 +0200 Subject: [PATCH] fix #747, hide .nomedia folders only if Show Hidden is disabled --- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index 76dd0781f..b4289d92f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -187,7 +187,7 @@ class MediaFetcher(val context: Context) { val file = File(path) return if (path.isEmpty()) { false - } else if (file.containsNoMedia()) { + } else if (!showHidden && file.containsNoMedia()) { false } else if (path.isThisOrParentIncluded(includedPaths)) { true