From 9649afac989f286c501b45244db2aa9b9ca96040 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 14 Apr 2018 19:14:04 +0200 Subject: [PATCH] sort groups on the groups picker alphabetically --- .../simplemobiletools/contacts/dialogs/SelectGroupsDialog.kt | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectGroupsDialog.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectGroupsDialog.kt index 66d1344e..f69a34a0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectGroupsDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/SelectGroupsDialog.kt @@ -22,7 +22,7 @@ class SelectGroupsDialog(val activity: SimpleActivity, val selectedGroups: Array private val dialog: AlertDialog? init { - groups.forEach { + groups.sortedBy { it.title }.forEach { addGroupCheckbox(it) } diff --git a/build.gradle b/build.gradle index 3437621a..139d4786 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.1.0' + classpath 'com.android.tools.build:gradle:3.1.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong