fix #52, ignore letter case when fetching parents

This commit is contained in:
tibbi 2017-03-17 23:37:46 +01:00
parent 10a742bacd
commit 4cfdb31a2d
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ fun Context.getParents(): ArrayList<String> {
val uri = MediaStore.Files.getContentUri("external")
val columns = arrayOf(MediaStore.Files.FileColumns.PARENT, MediaStore.Images.Media.DATA)
val where = "${MediaStore.Images.Media.DATA} IS NOT NULL) GROUP BY (${MediaStore.Files.FileColumns.PARENT} "
val parentsSet = HashSet<String>()
val parentsSet = TreeSet<String>(String.CASE_INSENSITIVE_ORDER)
var cursor: Cursor? = null
try {