Hide footer end pad in CIV2 non-end items.
This commit is contained in:
parent
85b7ee85f3
commit
05b5078aa9
1 changed files with 9 additions and 0 deletions
|
@ -223,6 +223,7 @@ open class V2ConversationItemTextOnlyViewHolder<Model : MappingModel<Model>>(
|
|||
presentDeliveryStatus()
|
||||
presentFooterBackground()
|
||||
presentFooterExpiry()
|
||||
presentFooterEndPadding()
|
||||
presentAlert()
|
||||
presentSender()
|
||||
presentSenderNameColor()
|
||||
|
@ -483,6 +484,14 @@ open class V2ConversationItemTextOnlyViewHolder<Model : MappingModel<Model>>(
|
|||
}
|
||||
}
|
||||
|
||||
private fun presentFooterEndPadding() {
|
||||
binding.footerSpace?.visibility = if (isForcedFooter() || shape.isEndingShape) {
|
||||
View.INVISIBLE
|
||||
} else {
|
||||
View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
private fun presentSenderNameBackground() {
|
||||
if (binding.senderName == null || !shape.isStartingShape || !conversationMessage.threadRecipient.isGroup || !conversationMessage.messageRecord.hasNoBubble(context)) {
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue