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