Selaa lähdekoodia

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

Always show reaction count
Andy Scherzinger 3 vuotta sitten
vanhempi
commit
41a00f43ac

+ 5 - 7
app/src/main/java/com/nextcloud/talk/adapters/messages/Reaction.kt

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