From 4cfdb31a2d74f4e78214090f28d22909d6fc2f30 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 17 Mar 2017 23:37:46 +0100 Subject: [PATCH] fix #52, ignore letter case when fetching parents --- .../kotlin/com/simplemobiletools/gallery/extensions/context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt index b62ec01f9..8905cca0b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt @@ -52,7 +52,7 @@ fun Context.getParents(): ArrayList { 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() + val parentsSet = TreeSet(String.CASE_INSENSITIVE_ORDER) var cursor: Cursor? = null try {