From a79f2e818159f82aaf151fb81890e696b859d463 Mon Sep 17 00:00:00 2001 From: Thomas Braccia Date: Thu, 21 Sep 2023 12:59:59 -0400 Subject: [PATCH] Update flag icon to have content description --- .../java/com/fsck/k9/ui/messagelist/MessageListAdapter.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListAdapter.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListAdapter.kt index 87e179690..17263d9d0 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListAdapter.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListAdapter.kt @@ -387,6 +387,11 @@ class MessageListAdapter internal constructor( if (appearance.stars) { holder.star.isSelected = isStarred + holder.starClickArea.contentDescription = if (isStarred) { + res.getString(R.string.unflag_action) + } else { + res.getString(R.string.flag_action) + } } holder.uniqueId = uniqueId if (appearance.showContactPicture && holder.contactPicture.isVisible) {