enable custom emojis in notification messages

main
Conny Duck 7 years ago
parent cd9061354b
commit 990d82b5e9
  1. 3
      app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java

@ -423,7 +423,8 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
final SpannableStringBuilder str = new SpannableStringBuilder(wholeMessage);
str.setSpan(new StyleSpan(Typeface.BOLD), 0, displayName.length(),
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
message.setText(str);
CharSequence emojifiedText = CustomEmojiHelper.emojifyText(str, notificationViewData.getAccount().getEmojis(), message);
message.setText(emojifiedText);
if (statusViewData != null) {
boolean hasSpoiler = !TextUtils.isEmpty(statusViewData.getSpoilerText());

Loading…
Cancel
Save