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