Merge pull request #1989 from nextcloud/bugfix/1983/alwaysShowCount

Always show reaction count
This commit is contained in:
Andy Scherzinger 2022-05-06 14:33:25 +02:00 committed by GitHub
commit 41a00f43ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,13 +75,11 @@ class Reaction {
emojiWithAmountWrapper.addView(reactionEmoji) emojiWithAmountWrapper.addView(reactionEmoji)
if (amount > 1) { val reactionAmount = TextView(context)
val reactionAmount = TextView(context) reactionAmount.setTextColor(textColor)
reactionAmount.setTextColor(textColor) reactionAmount.text = amount.toString()
reactionAmount.text = amount.toString() reactionAmount.layoutParams = amountParams
reactionAmount.layoutParams = amountParams emojiWithAmountWrapper.addView(reactionAmount)
emojiWithAmountWrapper.addView(reactionAmount)
}
emojiWithAmountWrapper.layoutParams = wrapperParams emojiWithAmountWrapper.layoutParams = wrapperParams