Add accessibility labels for media preview and emojis.

Fixes #14034
Resolves #14037
This commit is contained in:
Sagar
2025-03-05 18:57:43 +05:30
committed by Michelle Tang
parent 44c90331ec
commit a53bd29553
6 changed files with 37 additions and 4 deletions

View File

@@ -141,6 +141,7 @@ public class EmojiPageViewGridAdapter extends MappingAdapter implements PopupWin
public void bind(@NonNull EmojiModel model) {
final Drawable drawable = EmojiProvider.getEmojiDrawable(imageView.getContext(), model.emoji.getValue());
imageView.setContentDescription(model.emoji.getValue());
if (drawable != null) {
imageView.setVisibility(View.VISIBLE);
imageView.setImageDrawable(drawable);