fix: useSystemEmoji

This commit is contained in:
xtaodada 2022-07-08 10:37:11 +08:00 committed by luvletter2333
parent 7dcb3abadc
commit 7595ba071e
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
1 changed files with 2 additions and 2 deletions

View File

@ -545,8 +545,8 @@ public class Emoji {
public static CharSequence replaceEmoji(CharSequence cs, Paint.FontMetricsInt fontMetrics, int size, boolean createNew, int[] emojiOnly, boolean allowAnimated, AtomicReference<WeakReference<View>> viewRef) { public static CharSequence replaceEmoji(CharSequence cs, Paint.FontMetricsInt fontMetrics, int size, boolean createNew, int[] emojiOnly, boolean allowAnimated, AtomicReference<WeakReference<View>> viewRef) {
allowAnimated = false; allowAnimated = false;
if (NekoConfig.useSystemEmoji.Bool() || cs == null || cs.length() == 0) { if (NekoConfig.useSystemEmoji.Bool() || cs.length() == 0) {
return cs; return Spannable.Factory.getInstance().newSpannable(cs.toString());
} }
Spannable s; Spannable s;
if (!createNew && cs instanceof Spannable) { if (!createNew && cs instanceof Spannable) {