From b4f44df18352d039b00afda4a54c98fecf332155 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 25 Apr 2018 23:41:44 +0200 Subject: [PATCH] avoid showing the same folder twice, with different casing --- .../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 9ef0f82e5..9cf121e75 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -138,7 +138,7 @@ class MediaFetcher(val context: Context) { foldersToScan.add(curPath) } - return foldersToScan + return foldersToScan.distinctBy { it.toLowerCase() } as ArrayList } private fun addFolder(curFolders: ArrayList, folder: String) {