mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-16 19:18:52 +01:00
remove excessive padding
This commit is contained in:
@@ -420,7 +420,6 @@ class MessagesAdapter @Inject constructor(
|
||||
holder.reactionText?.text = reactionText
|
||||
holder.reactionText?.setOnClickListener { reactionClicks.onNext(message.id) }
|
||||
reactionsContainer.setVisible(true)
|
||||
makeRoomForEmojis(holder)
|
||||
} else {
|
||||
reactionsContainer.setVisible(false)
|
||||
holder.reactionText?.setOnClickListener(null)
|
||||
@@ -428,19 +427,6 @@ class MessagesAdapter @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun makeRoomForEmojis(holder: QkViewHolder) {
|
||||
val paddingBottom = 25.dpToPx(context)
|
||||
|
||||
(holder.reactions?.parent?.parent as? ViewGroup)?.let { parent ->
|
||||
parent.setPadding(
|
||||
parent.paddingLeft,
|
||||
parent.paddingTop,
|
||||
parent.paddingRight,
|
||||
paddingBottom
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private fun bindStatus(
|
||||
holder: QkViewHolder,
|
||||
bodyTextTruncated: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user