From 73b1d2147eada662411a7a767a5f8eaf143e229f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 27 Sep 2020 09:56:02 +0200 Subject: [PATCH] fixing a glitch with some folders being invisible --- .../com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt index bfcb01f5d..b6ff0c9de 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt @@ -74,7 +74,6 @@ class MediaFetcher(val context: Context) { val distinctPaths = folders.distinctBy { when { distinctPathsMap.containsKey(it) -> distinctPathsMap[it] - distinctPathsMap.contains(it.getParentPath()) -> distinctPathsMap[it.getParentPath()] else -> { val distinct = it.getDistinctPath() distinctPathsMap[it.getParentPath()] = distinct.getParentPath()