show all contact numbers at the new conversation screen

This commit is contained in:
tibbi 2022-02-07 10:07:33 +01:00
parent 4a57000d9a
commit 9279c66cb3
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.simplemobiletools.smsmessenger.adapters package com.simplemobiletools.smsmessenger.adapters
import android.text.TextUtils
import android.util.TypedValue import android.util.TypedValue
import android.view.Menu import android.view.Menu
import android.view.View import android.view.View
@ -69,7 +70,7 @@ class ContactsAdapter(
} }
findViewById<TextView>(R.id.item_contact_number).apply { findViewById<TextView>(R.id.item_contact_number).apply {
text = contact.phoneNumbers.first().normalizedNumber text = TextUtils.join(", ", contact.phoneNumbers.map { it.normalizedNumber })
setTextColor(textColor) setTextColor(textColor)
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize) setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
} }