mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-25 17:12:38 +01:00
Fix too wide message bubbles when hiding information
Change-Id: I8507bf146a415237bef95683eb7a2f031bee9b7e
This commit is contained in:
parent
455d48ea6a
commit
8d55c5ef9a
@ -251,7 +251,7 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : AbsBaseMessageItem<H>
|
||||
val time = attributes.informationData.time.toString()
|
||||
return if (contentInBubble) {
|
||||
if (BubbleThemeUtils.getBubbleTimeLocation(holder.bubbleTimeView.context) == BubbleThemeUtils.BUBBLE_TIME_BOTTOM) {
|
||||
if (attributes.informationData.showInformation) {
|
||||
if (attributes.informationData.showInformation && !canHideAvatars()) {
|
||||
// Since timeView automatically gets enough space, either within or outside the viewStub, we just need to ensure the member name view has enough space
|
||||
// Somehow not enough without extra space...
|
||||
ceil(BubbleThemeUtils.guessTextWidth(holder.bubbleMemberNameView, "$memberName ")).toInt()
|
||||
|
Loading…
Reference in New Issue
Block a user