feat: display custom emoji in reply button

This commit is contained in:
FineFindus 2024-03-17 14:18:20 +01:00
parent ad1de60968
commit 685e6e947f
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 2 additions and 1 deletions

View File

@ -414,7 +414,8 @@ public class ThreadFragment extends StatusListFragment implements ProvidesAssist
replyButtonAva=replyButton.findViewById(R.id.avatar); replyButtonAva=replyButton.findViewById(R.id.avatar);
replyButton.setOutlineProvider(OutlineProviders.roundedRect(20)); replyButton.setOutlineProvider(OutlineProviders.roundedRect(20));
replyButton.setClipToOutline(true); replyButton.setClipToOutline(true);
replyButtonText.setText(getString(R.string.reply_to_user, mainStatus.account.displayName)); replyButtonText.setText(HtmlParser.parseCustomEmoji(getString(R.string.reply_to_user, mainStatus.account.displayName), mainStatus.account.emojis));
UiUtils.loadCustomEmojiInTextView(replyButtonText);
replyButtonAva.setOutlineProvider(OutlineProviders.OVAL); replyButtonAva.setOutlineProvider(OutlineProviders.OVAL);
replyButtonAva.setClipToOutline(true); replyButtonAva.setClipToOutline(true);
replyButton.setOnClickListener(v->openReply()); replyButton.setOnClickListener(v->openReply());