Fix animated emoji not working if using system emoji, close #46
This commit is contained in:
parent
d929865e8d
commit
2750b495d2
@ -333,9 +333,6 @@ public class Emoji {
|
||||
} else {
|
||||
s = Spannable.Factory.getInstance().newSpannable(cs.toString());
|
||||
}
|
||||
if (SharedConfig.useSystemEmoji) {
|
||||
return s;
|
||||
}
|
||||
long buf = 0;
|
||||
int emojiCount = 0;
|
||||
char c;
|
||||
@ -458,6 +455,7 @@ public class Emoji {
|
||||
if (emojiOnly != null) {
|
||||
emojiOnly[0]++;
|
||||
}
|
||||
if (!SharedConfig.useSystemEmoji) {
|
||||
CharSequence code = emojiCode.subSequence(0, emojiCode.length());
|
||||
drawable = Emoji.getEmojiDrawable(code);
|
||||
if (drawable != null) {
|
||||
@ -465,6 +463,7 @@ public class Emoji {
|
||||
s.setSpan(span, startIndex, startIndex + startLength, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
emojiCount++;
|
||||
}
|
||||
}
|
||||
startLength = 0;
|
||||
startIndex = -1;
|
||||
emojiCode.setLength(0);
|
||||
|
Loading…
Reference in New Issue
Block a user