Set seen/unseen content description on item view

This commit is contained in:
M66B
2019-12-22 20:17:45 +01:00
parent 9c1c46f7ca
commit 45eb7fb118
3 changed files with 5 additions and 3 deletions

View File

@@ -721,6 +721,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
: message.uid == null && message.accountProtocol == EntityAccount.TYPE_IMAP)
? Helper.LOW_LIGHT : 1.0f);
view.setContentDescription(context.getString(
message.unseen > 0 ? R.string.title_accessibility_unseen : R.string.title_accessibility_seen));
// Duplicate
if (viewType == ViewType.THREAD) {
boolean dim = (message.duplicate || EntityFolder.TRASH.equals(message.folderType));
@@ -777,9 +780,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
vwColor.setBackgroundColor(colorBackground);
}
vwColor.setContentDescription(context.getString(
message.unseen > 0 ? R.string.title_accessibility_unseen : R.string.title_accessibility_seen));
// Expander
if (ibExpander.getTag() == null || (boolean) ibExpander.getTag() != expanded) {
ibExpander.setTag(expanded);