[merge] Fix minimum bubble width for long sender names
Change-Id: I32aa8b8dfc40ce29e2414f04ae8933a836d9ebc3
This commit is contained in:
parent
a8f10a95da
commit
8afa535fe6
|
@ -534,7 +534,7 @@ class ScMessageBubbleWrapView @JvmOverloads constructor(context: Context, attrs:
|
|||
val time = attributes.informationData.time.toString()
|
||||
val result = if (contentInBubble) {
|
||||
if (getBubbleTimeLocation(messageLayout) == BUBBLE_TIME_BOTTOM) {
|
||||
if (attributes.informationData.messageLayout.showDisplayName && canHideSender) {
|
||||
if (attributes.informationData.messageLayout.showDisplayName && !canHideSender) {
|
||||
// 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(guessTextWidth(views.bubbleMessageMemberNameView, "$memberName ")).toInt()
|
||||
|
|
Loading…
Reference in New Issue