Fix ANR when trying to load a message composed of 10,000 random emoji.

This commit is contained in:
Alex Hart
2025-10-09 12:02:16 -03:00
committed by Cody Henthorne
parent f8eaa96412
commit c9a59a7417
3 changed files with 134 additions and 30 deletions

View File

@@ -1089,7 +1089,7 @@ public final class ConversationItem extends RelativeLayout implements BindableCo
bodyText.setMaxLines(Integer.MAX_VALUE);
}
bodyText.setText(StringUtil.trim(styledText));
bodyText.setTextAsync(StringUtil.trim(styledText));
bodyText.setVisibility(View.VISIBLE);
if (conversationMessage.getBottomButton() != null) {