Minor code cleanup

This commit is contained in:
Juha Heinanen
2022-02-18 10:11:22 +02:00
parent 9ff543fd6d
commit 7d943362c6
3 changed files with 11 additions and 15 deletions
@@ -208,14 +208,14 @@ sealed class Contact {
BaresipService.contactUpdate.postValue(System.nanoTime())
}
fun sortContacts() {
private fun sortContacts() {
BaresipService.contacts.sortBy{ when (it) {
is BaresipContact -> it.name
is AndroidContact -> it.name
}}
}
fun generateContactNames () {
private fun generateContactNames () {
BaresipService.contactNames.clear()
BaresipService.contactNames.addAll(
BaresipService.contacts.map {