mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-20 20:58:54 +01:00
remove excessive padding
This commit is contained in:
@@ -420,7 +420,6 @@ class MessagesAdapter @Inject constructor(
|
|||||||
holder.reactionText?.text = reactionText
|
holder.reactionText?.text = reactionText
|
||||||
holder.reactionText?.setOnClickListener { reactionClicks.onNext(message.id) }
|
holder.reactionText?.setOnClickListener { reactionClicks.onNext(message.id) }
|
||||||
reactionsContainer.setVisible(true)
|
reactionsContainer.setVisible(true)
|
||||||
makeRoomForEmojis(holder)
|
|
||||||
} else {
|
} else {
|
||||||
reactionsContainer.setVisible(false)
|
reactionsContainer.setVisible(false)
|
||||||
holder.reactionText?.setOnClickListener(null)
|
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(
|
private fun bindStatus(
|
||||||
holder: QkViewHolder,
|
holder: QkViewHolder,
|
||||||
bodyTextTruncated: Boolean,
|
bodyTextTruncated: Boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user