fix text got cut off when sending an image with a text message

This commit is contained in:
Ryan ZHAO 2020-08-07 15:13:08 +10:00
parent 3f69aabf85
commit df15743c04

View File

@ -290,6 +290,10 @@ public class ConversationItem extends LinearLayout
}
}
if (hasThumbnail(messageRecord) && messageRecord.getDisplayBody(context).length() > 0) {
ViewUtil.updateLayoutParams(bodyText, getAvailableMessageBubbleWidth(bodyText), ViewGroup.LayoutParams.WRAP_CONTENT);
}
ConversationItemFooter activeFooter = getActiveFooter(messageRecord);
int availableWidth = getAvailableMessageBubbleWidth(footer);