|
|
|
@ -219,6 +219,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
private int colorSubject;
|
|
|
|
|
private int colorEncrypt;
|
|
|
|
|
private int colorSeparator;
|
|
|
|
|
private int colorError;
|
|
|
|
|
private int colorControlNormal;
|
|
|
|
|
|
|
|
|
|
private boolean hasWebView;
|
|
|
|
|
private boolean pin;
|
|
|
|
@ -1713,6 +1715,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
|
|
|
|
|
ivPlain.setVisibility(show_addresses && message.plain_only != null && message.plain_only ? View.VISIBLE : View.GONE);
|
|
|
|
|
ibReceipt.setVisibility(message.receipt_request != null && message.receipt_request ? View.VISIBLE : View.GONE);
|
|
|
|
|
ibReceipt.setImageTintList(ColorStateList.valueOf(message.ui_answered ? colorControlNormal : colorError));
|
|
|
|
|
ivAutoSubmitted.setVisibility(show_addresses && message.auto_submitted != null && message.auto_submitted ? View.VISIBLE : View.GONE);
|
|
|
|
|
ivBrowsed.setVisibility(show_addresses && message.ui_browsed ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
|
@ -5181,6 +5184,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
this.colorSubject = Helper.resolveColor(context, highlight_subject ? R.attr.colorUnreadHighlight : R.attr.colorRead);
|
|
|
|
|
this.colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt);
|
|
|
|
|
this.colorSeparator = Helper.resolveColor(context, R.attr.colorSeparator);
|
|
|
|
|
this.colorError = Helper.resolveColor(context, R.attr.colorError);
|
|
|
|
|
this.colorControlNormal = Helper.resolveColor(context, R.attr.colorControlNormal);
|
|
|
|
|
|
|
|
|
|
this.hasWebView = Helper.hasWebView(context);
|
|
|
|
|
this.pin = ShortcutManagerCompat.isRequestPinShortcutSupported(context);
|
|
|
|
|