Catch IllegalArgumentException when setting precomputed text with stale params.

This commit is contained in:
Greyson Parrelli
2026-05-01 14:55:50 +00:00
parent adb9e2173f
commit bd3e1e8059
@@ -243,7 +243,11 @@ public class EmojiTextView extends AppCompatTextView {
return;
}
textView.setPrecomputedText(precomputedTextCompat);
try {
textView.setPrecomputedText(precomputedTextCompat);
} catch (IllegalArgumentException e) {
textView.setText(text, type);
}
if (textView.sizeChangeInProgress) {
textView.sizeChangeInProgress = false;