show type at the number picker at new thread
This commit is contained in:
parent
9279c66cb3
commit
c2339a929d
|
@ -148,11 +148,12 @@ class NewConversationActivity : SimpleActivity() {
|
||||||
if (phoneNumbers.size > 1) {
|
if (phoneNumbers.size > 1) {
|
||||||
val items = ArrayList<RadioItem>()
|
val items = ArrayList<RadioItem>()
|
||||||
phoneNumbers.forEachIndexed { index, phoneNumber ->
|
phoneNumbers.forEachIndexed { index, phoneNumber ->
|
||||||
items.add(RadioItem(index, phoneNumber.normalizedNumber, phoneNumber))
|
val type = getPhoneNumberTypeText(phoneNumber.type, phoneNumber.label)
|
||||||
|
items.add(RadioItem(index, "${phoneNumber.normalizedNumber} ($type)", phoneNumber.normalizedNumber))
|
||||||
}
|
}
|
||||||
|
|
||||||
RadioGroupDialog(this, items) {
|
RadioGroupDialog(this, items) {
|
||||||
launchThreadActivity((it as PhoneNumber).normalizedNumber, contact.name)
|
launchThreadActivity(it as String, contact.name)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
launchThreadActivity(phoneNumbers.first().normalizedNumber, contact.name)
|
launchThreadActivity(phoneNumbers.first().normalizedNumber, contact.name)
|
||||||
|
|
Loading…
Reference in New Issue