Fix QuoteView measuring when voice notes are present.

Fixes #7740
pull/1/head
Greyson Parrelli 7 years ago
parent 0c8b2b23da
commit 102941c18c

@ -259,7 +259,9 @@ public class ConversationItem extends LinearLayout
int quoteWidth = quoteView.getMeasuredWidth();
int availableWidth;
if (hasThumbnail(messageRecord)) {
if (hasAudio(messageRecord)) {
availableWidth = audioViewStub.get().getMeasuredWidth();
} else if (hasThumbnail(messageRecord)) {
availableWidth = mediaThumbnailStub.get().getMeasuredWidth();
} else {
availableWidth = bodyBubble.getMeasuredWidth() - bodyBubble.getPaddingLeft() - bodyBubble.getPaddingRight();

Loading…
Cancel
Save