From 102941c18c088ef3fdeb74975ba17859d22340df Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 26 Apr 2018 17:41:37 -0700 Subject: [PATCH] Fix QuoteView measuring when voice notes are present. Fixes #7740 --- src/org/thoughtcrime/securesms/ConversationItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/ConversationItem.java b/src/org/thoughtcrime/securesms/ConversationItem.java index 54a1504fd4..aaa62578d2 100644 --- a/src/org/thoughtcrime/securesms/ConversationItem.java +++ b/src/org/thoughtcrime/securesms/ConversationItem.java @@ -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();