Merge pull request #10 from omg-xtao/fix

Some bugs fix
This commit is contained in:
NextAlone 2022-07-08 14:50:18 +08:00 committed by GitHub
commit 99c6fcdeba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 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) {
allowAnimated = false;
if (NekoConfig.useSystemEmoji.Bool() || cs == null || cs.length() == 0) {
return cs;
if (NekoConfig.useSystemEmoji.Bool() || cs.length() == 0) {
return Spannable.Factory.getInstance().newSpannable(cs.toString());
}
Spannable s;
if (!createNew && cs instanceof Spannable) {

View File

@ -8018,7 +8018,7 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
while (text.contains("\n\n\n")) {
text = text.replace("\n\n\n", "\n\n");
}
aboutLinkCell.setText(text, ChatObject.isChannel(currentChat) && !currentChat.megagroup);
aboutLinkCell.setText(text, true);
}
if (position == bioRow) {
String value;