Limit line count for contact group

This commit is contained in:
Moez Bhatti
2020-02-29 21:40:48 -05:00
parent f13fb350e1
commit ad48977c1a
2 changed files with 6 additions and 2 deletions
@@ -123,6 +123,7 @@ class ComposeItemAdapter @Inject constructor(
holder.subtitle.text = conversation.recipients.joinToString(", ") { recipient ->
recipient.contact?.name ?: recipient.address
}
holder.subtitle.collapseEnabled = conversation.recipients.size > 1
holder.numbers.isVisible = conversation.recipients.size == 1
(holder.numbers.adapter as PhoneNumberAdapter).data = conversation.recipients
@@ -158,6 +159,7 @@ class ComposeItemAdapter @Inject constructor(
holder.subtitle.isVisible = true
holder.subtitle.text = group.contacts.joinToString(", ") { it.name }
holder.subtitle.collapseEnabled = group.contacts.size > 1
holder.numbers.isVisible = false
}