avoid showing the same folder twice, with different casing
This commit is contained in:
parent
e2fa9646d9
commit
b4f44df183
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class MediaFetcher(val context: Context) {
|
||||||
foldersToScan.add(curPath)
|
foldersToScan.add(curPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
return foldersToScan
|
return foldersToScan.distinctBy { it.toLowerCase() } as ArrayList<String>
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addFolder(curFolders: ArrayList<String>, folder: String) {
|
private fun addFolder(curFolders: ArrayList<String>, folder: String) {
|
||||||
|
|
Loading…
Reference in a new issue