Fix QuoteView measuring when voice notes are present.

Fixes #7740
This commit is contained in:
Greyson Parrelli 2018-04-26 17:41:37 -07:00
parent 0c8b2b23da
commit 102941c18c

View File

@ -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();