avoid showing the same folder twice, with different casing

This commit is contained in:
tibbi 2018-04-25 23:41:44 +02:00
parent e2fa9646d9
commit b4f44df183

View file

@ -138,7 +138,7 @@ class MediaFetcher(val context: Context) {
foldersToScan.add(curPath)
}
return foldersToScan
return foldersToScan.distinctBy { it.toLowerCase() } as ArrayList<String>
}
private fun addFolder(curFolders: ArrayList<String>, folder: String) {