sort shown contact phone numbers by type
This commit is contained in:
parent
1ad3b3e525
commit
0b4b0dd763
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue