Improve layout for MMS images

This commit is contained in:
Moez Bhatti
2018-01-09 12:22:01 -05:00
parent ce9b6a5846
commit 3b74913269
3 changed files with 16 additions and 12 deletions
@@ -83,6 +83,8 @@ class MessagesAdapter @Inject constructor(
}
}
view.messageBackground.clipToOutline = true
if (viewType != VIEWTYPE_ME) {
view.avatar.contact = Contact().apply {
numbers.add(PhoneNumber().apply { address = people[viewType] })
@@ -119,6 +121,8 @@ class MessagesAdapter @Inject constructor(
bindGrouping(view, position)
view.body.text = message.getText()
view.body.setVisible(message.isSms() || view.body.text.isNotBlank())
view.timestamp.text = dateFormatter.getMessageTimestamp(message.date)
}