Receipt request answered color

This commit is contained in:
M66B 2020-12-03 17:16:34 +01:00
parent 54ca4f133b
commit 81a954e287
2 changed files with 5 additions and 1 deletions

View File

@ -219,6 +219,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private int colorSubject; private int colorSubject;
private int colorEncrypt; private int colorEncrypt;
private int colorSeparator; private int colorSeparator;
private int colorError;
private int colorControlNormal;
private boolean hasWebView; private boolean hasWebView;
private boolean pin; 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); 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.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); 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); 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.colorSubject = Helper.resolveColor(context, highlight_subject ? R.attr.colorUnreadHighlight : R.attr.colorRead);
this.colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt); this.colorEncrypt = Helper.resolveColor(context, R.attr.colorEncrypt);
this.colorSeparator = Helper.resolveColor(context, R.attr.colorSeparator); 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.hasWebView = Helper.hasWebView(context);
this.pin = ShortcutManagerCompat.isRequestPinShortcutSupported(context); this.pin = ShortcutManagerCompat.isRequestPinShortcutSupported(context);

View File

@ -42,7 +42,6 @@
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:background="?android:attr/selectableItemBackgroundBorderless" android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/title_legend_receipt" android:contentDescription="@string/title_legend_receipt"
android:tint="?attr/colorWarning"
android:tooltipText="@string/title_legend_receipt" android:tooltipText="@string/title_legend_receipt"
app:layout_constraintStart_toEndOf="@id/ivPlain" app:layout_constraintStart_toEndOf="@id/ivPlain"
app:layout_constraintTop_toBottomOf="@id/ibExpanderAddress" app:layout_constraintTop_toBottomOf="@id/ibExpanderAddress"