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()