at search results prioritize names that start with the search string
This commit is contained in:
parent
ec5c49ce1e
commit
2a36a23782
2 changed files with 2 additions and 4 deletions
|
|
@ -52,6 +52,7 @@ class NewMessageActivity : SimpleActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
filteredContacts.sortWith(compareBy { !it.name.startsWith(searchString, true) })
|
||||
setupAdapter(filteredContacts)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue