improve contact sorting at New Conversation, prefer names starting with letters

This commit is contained in:
tibbi 2020-05-03 23:43:09 +02:00
parent 96e78e3ddc
commit d98c1abb96
3 changed files with 24 additions and 7 deletions

View file

@ -403,7 +403,7 @@ fun Context.getAvailableContacts(callback: (ArrayList<Contact>) -> Unit) {
it.phoneNumber.substring(startIndex)
}.toMutableList() as ArrayList<Contact>
allContacts.sortBy { it.name.normalizeString().toLowerCase(Locale.getDefault()) }
allContacts.sort()
callback(allContacts)
}
}