mirror of https://github.com/NekoX-Dev/NekoX.git
fix emoji
This commit is contained in:
parent
946f24c45b
commit
de6d5e01f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue