Fix QuoteView measuring when voice notes are present.

Fixes #7740
fork-5.53.8
Greyson Parrelli 2018-04-26 17:41:37 -07:00
rodzic 0c8b2b23da
commit 102941c18c
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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