Skip to content
Snippets Groups Projects
Commit c5fd66c7 authored by Pavan Koushik Nellore's avatar Pavan Koushik Nellore Committed by Adrien Béraud
Browse files

MessageBubble: fix text clipping in single-line

Avoid subtracting edited label width when it is not
visible to prevent layout overlap with message text.

Gitlab: #1877
Change-Id: I30f43ebb664de716c2587df20b5f9c5b358585db
parent cabb152b
Branches
Tags
No related merge requests found
......@@ -260,7 +260,7 @@ class MessageBubble(context: Context, attrs: AttributeSet?) : ViewGroup(context,
val timeBottom: Int
// Edited is always aligned with the time.
val editedEnd: Int = timeStart
val editedStart: Int = editedEnd - messageEdited.measuredWidth
val editedStart = editedEnd - if (messageEdited.isVisible) messageEdited.measuredWidth else 0
when (calculatedCase) {
Case.NEW_LINE -> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment