Add some spacing between attachments and text
This commit is contained in:
parent
0b33ec877d
commit
49597a8db3
3 changed files with 7 additions and 3 deletions
|
|
@ -260,8 +260,9 @@ class ThreadAdapter(
|
|||
holder.viewClicked(message)
|
||||
}
|
||||
|
||||
thread_mesage_attachments_holder.removeAllViews()
|
||||
if (message.attachment?.attachments?.isNotEmpty() == true) {
|
||||
thread_mesage_attachments_holder.beVisible()
|
||||
thread_mesage_attachments_holder.removeAllViews()
|
||||
for (attachment in message.attachment.attachments) {
|
||||
val mimetype = attachment.mimetype
|
||||
when {
|
||||
|
|
@ -272,6 +273,8 @@ class ThreadAdapter(
|
|||
|
||||
thread_message_play_outline.beVisibleIf(mimetype.startsWith("video/"))
|
||||
}
|
||||
} else {
|
||||
thread_mesage_attachments_holder.beGone()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue