mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Attach seen/unseen content description to color stripe
This commit is contained in:
parent
b370ea9e5c
commit
9c1c46f7ca
1 changed files with 3 additions and 3 deletions
|
@ -772,12 +772,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
int colorBackground =
|
||||
(message.accountColor == null || !ActivityBilling.isPro(context)
|
||||
? colorSeparator : message.accountColor);
|
||||
vwColor.setVisibility(View.VISIBLE);
|
||||
if (vwColor.getTag() == null || (int) vwColor.getTag() != colorBackground) {
|
||||
vwColor.setTag(colorBackground);
|
||||
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);
|
||||
|
@ -801,8 +803,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ivEncrypted.setVisibility(message.encrypted > 0 ? View.VISIBLE : View.GONE);
|
||||
tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false));
|
||||
tvFrom.setPaintFlags(tvFrom.getPaintFlags() & ~Paint.UNDERLINE_TEXT_FLAG);
|
||||
//tvFrom.setContentDescription(context.getString(
|
||||
// message.unseen > 0 ? R.string.title_accessibility_unseen : R.string.title_accessibility_seen));
|
||||
tvSize.setText(message.totalSize == null ? null : Helper.humanReadableByteCount(message.totalSize, true));
|
||||
tvSize.setVisibility(message.totalSize != null && "size".equals(sort) ? View.VISIBLE : View.GONE);
|
||||
tvTime.setText(date && "time".equals(sort)
|
||||
|
|
Loading…
Reference in a new issue