mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
format kotlin
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
a55a5536dc
commit
2df414cb63
@ -88,15 +88,15 @@ class Reaction {
|
|||||||
val paddingSide = DisplayUtils.convertDpToPixel(EMOJI_AND_AMOUNT_PADDING_SIDE, context).toInt()
|
val paddingSide = DisplayUtils.convertDpToPixel(EMOJI_AND_AMOUNT_PADDING_SIDE, context).toInt()
|
||||||
val paddingTop = DisplayUtils.convertDpToPixel(WRAPPER_PADDING_TOP, context).toInt()
|
val paddingTop = DisplayUtils.convertDpToPixel(WRAPPER_PADDING_TOP, context).toInt()
|
||||||
val paddingBottom = DisplayUtils.convertDpToPixel(WRAPPER_PADDING_BOTTOM, context).toInt()
|
val paddingBottom = DisplayUtils.convertDpToPixel(WRAPPER_PADDING_BOTTOM, context).toInt()
|
||||||
if (message.reactionsSelf != null
|
if (message.reactionsSelf != null &&
|
||||||
&& message.reactionsSelf.isNotEmpty()
|
message.reactionsSelf.isNotEmpty() &&
|
||||||
&& message.reactionsSelf.contains(emoji)
|
message.reactionsSelf.contains(emoji)
|
||||||
) {
|
) {
|
||||||
emojiWithAmountWrapper.background =
|
emojiWithAmountWrapper.background =
|
||||||
AppCompatResources.getDrawable(context, R.drawable.reaction_self_background)
|
AppCompatResources.getDrawable(context, R.drawable.reaction_self_background)
|
||||||
emojiWithAmountWrapper.setPaddingRelative(paddingSide,paddingTop, paddingSide,paddingBottom)
|
emojiWithAmountWrapper.setPaddingRelative(paddingSide, paddingTop, paddingSide, paddingBottom)
|
||||||
} else {
|
} else {
|
||||||
emojiWithAmountWrapper.setPaddingRelative(0,paddingTop, paddingSide,paddingBottom)
|
emojiWithAmountWrapper.setPaddingRelative(0, paddingTop, paddingSide, paddingBottom)
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.reactionsEmojiWrapper.addView(emojiWithAmountWrapper)
|
binding.reactionsEmojiWrapper.addView(emojiWithAmountWrapper)
|
||||||
|
Loading…
Reference in New Issue
Block a user