mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-05-24 06:27:37 -04:00
sort shown contact phone numbers by type
This commit is contained in:
@@ -298,6 +298,8 @@ class ViewContactActivity : ContactActivity() {
|
||||
}
|
||||
}.toMutableSet() as LinkedHashSet<PhoneNumber>
|
||||
|
||||
phoneNumbers = phoneNumbers.sortedBy { it.type }.toMutableSet() as LinkedHashSet<PhoneNumber>
|
||||
|
||||
contact_numbers_holder.removeAllViews()
|
||||
if (phoneNumbers.isNotEmpty()) {
|
||||
phoneNumbers.forEach {
|
||||
|
||||
Reference in New Issue
Block a user