mirror of https://github.com/NekoX-Dev/NekoX.git
fix: useSystemEmoji
This commit is contained in:
parent
7dcb3abadc
commit
7595ba071e
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue