mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Set seen/unseen content description on item view
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user