mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix ANR when trying to load a message composed of 10,000 random emoji.
This commit is contained in:
committed by
Cody Henthorne
parent
f8eaa96412
commit
c9a59a7417
@@ -129,9 +129,10 @@ public class LongMessageFragment extends FullScreenDialogFragment {
|
||||
CommunicationActions.handlePotentialProxyLinkUrl(requireActivity(), url));
|
||||
|
||||
bubble.setVisibility(View.VISIBLE);
|
||||
text.setText(body);
|
||||
text.setMovementMethod(LongClickMovementMethod.getInstance(getContext()));
|
||||
text.setTextSize(TypedValue.COMPLEX_UNIT_SP, SignalStore.settings().getMessageFontSize());
|
||||
text.setTextAsync(body);
|
||||
|
||||
if (!message.get().getMessageRecord().isOutgoing()) {
|
||||
text.setMentionBackgroundTint(ContextCompat.getColor(requireContext(), ThemeUtil.isDarkTheme(requireActivity()) ? R.color.core_grey_60 : R.color.core_grey_20));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user