mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-23 06:08:52 +01:00
fix emoji count wrapping
This commit is contained in:
@@ -411,7 +411,8 @@ class MessagesAdapter @Inject constructor(
|
|||||||
val reactionText = if (topReaction.second == 1) {
|
val reactionText = if (topReaction.second == 1) {
|
||||||
topReaction.first
|
topReaction.first
|
||||||
} else {
|
} else {
|
||||||
"${topReaction.first} ${topReaction.second}"
|
// Use a non-breaking space to keep the emoji and count together
|
||||||
|
"${topReaction.first}\u00A0${topReaction.second}"
|
||||||
}
|
}
|
||||||
|
|
||||||
holder.reactionText?.text = reactionText
|
holder.reactionText?.text = reactionText
|
||||||
@@ -516,4 +517,4 @@ class MessagesAdapter @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,6 +145,7 @@
|
|||||||
android:background="@drawable/message_only"
|
android:background="@drawable/message_only"
|
||||||
android:backgroundTint="?android:attr/colorBackground"
|
android:backgroundTint="?android:attr/colorBackground"
|
||||||
android:elevation="2dp"
|
android:elevation="2dp"
|
||||||
|
android:maxLines="1"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
android:paddingEnd="8dp"
|
android:paddingEnd="8dp"
|
||||||
@@ -176,4 +177,4 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|||||||
@@ -183,6 +183,7 @@
|
|||||||
android:background="@drawable/message_only"
|
android:background="@drawable/message_only"
|
||||||
android:backgroundTint="?android:attr/colorBackground"
|
android:backgroundTint="?android:attr/colorBackground"
|
||||||
android:elevation="2dp"
|
android:elevation="2dp"
|
||||||
|
android:maxLines="1"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="8dp"
|
||||||
android:paddingTop="4dp"
|
android:paddingTop="4dp"
|
||||||
android:paddingEnd="8dp"
|
android:paddingEnd="8dp"
|
||||||
@@ -250,4 +251,4 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user