mirror of https://github.com/M66B/FairEmail.git
Attach seen/unseen content description to color stripe
This commit is contained in:
parent
b370ea9e5c
commit
9c1c46f7ca
|
@ -772,12 +772,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
int colorBackground =
|
int colorBackground =
|
||||||
(message.accountColor == null || !ActivityBilling.isPro(context)
|
(message.accountColor == null || !ActivityBilling.isPro(context)
|
||||||
? colorSeparator : message.accountColor);
|
? colorSeparator : message.accountColor);
|
||||||
vwColor.setVisibility(View.VISIBLE);
|
|
||||||
if (vwColor.getTag() == null || (int) vwColor.getTag() != colorBackground) {
|
if (vwColor.getTag() == null || (int) vwColor.getTag() != colorBackground) {
|
||||||
vwColor.setTag(colorBackground);
|
vwColor.setTag(colorBackground);
|
||||||
vwColor.setBackgroundColor(colorBackground);
|
vwColor.setBackgroundColor(colorBackground);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vwColor.setContentDescription(context.getString(
|
||||||
|
message.unseen > 0 ? R.string.title_accessibility_unseen : R.string.title_accessibility_seen));
|
||||||
|
|
||||||
// Expander
|
// Expander
|
||||||
if (ibExpander.getTag() == null || (boolean) ibExpander.getTag() != expanded) {
|
if (ibExpander.getTag() == null || (boolean) ibExpander.getTag() != expanded) {
|
||||||
ibExpander.setTag(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);
|
ivEncrypted.setVisibility(message.encrypted > 0 ? View.VISIBLE : View.GONE);
|
||||||
tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false));
|
tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false));
|
||||||
tvFrom.setPaintFlags(tvFrom.getPaintFlags() & ~Paint.UNDERLINE_TEXT_FLAG);
|
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.setText(message.totalSize == null ? null : Helper.humanReadableByteCount(message.totalSize, true));
|
||||||
tvSize.setVisibility(message.totalSize != null && "size".equals(sort) ? View.VISIBLE : View.GONE);
|
tvSize.setVisibility(message.totalSize != null && "size".equals(sort) ? View.VISIBLE : View.GONE);
|
||||||
tvTime.setText(date && "time".equals(sort)
|
tvTime.setText(date && "time".equals(sort)
|
||||||
|
|
Loading…
Reference in New Issue