fix emoji

This commit is contained in:
luvletter2333 2022-07-12 22:33:30 +08:00
parent 946f24c45b
commit de6d5e01f3
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
1 changed files with 4 additions and 1 deletions

View File

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