Added sent by a list warning icon

This commit is contained in:
M66B 2024-02-08 12:26:08 +01:00
parent dc1fe52ed1
commit b2f8916560
3 changed files with 18 additions and 2 deletions

View File

@ -399,6 +399,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private ImageView ivPlain;
private ImageButton ibReceipt;
private ImageView ivAutoSubmitted;
private ImageView ivList;
private ImageView ivBrowsed;
private ImageView ivRaw;
@ -809,6 +810,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ivPlain = vsBody.findViewById(R.id.ivPlain);
ibReceipt = vsBody.findViewById(R.id.ibReceipt);
ivAutoSubmitted = vsBody.findViewById(R.id.ivAutoSubmitted);
ivList = vsBody.findViewById(R.id.ivList);
ivBrowsed = vsBody.findViewById(R.id.ivBrowsed);
ivRaw = vsBody.findViewById(R.id.ivRaw);
@ -1741,6 +1743,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ivPlain.setVisibility(View.GONE);
ibReceipt.setVisibility(View.GONE);
ivAutoSubmitted.setVisibility(View.GONE);
ivList.setVisibility(View.GONE);
ivBrowsed.setVisibility(View.GONE);
ivRaw.setVisibility(View.GONE);
@ -2577,6 +2580,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
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);
ivList.setVisibility(message.list_post != null && message.list_post.length > 0 ? View.VISIBLE : View.GONE);
ivBrowsed.setVisibility(show_addresses && message.ui_browsed ? View.VISIBLE : View.GONE);
ivRaw.setVisibility(BuildConfig.DEBUG && Boolean.TRUE.equals(message.raw) ? View.VISIBLE : View.GONE);

View File

@ -57,13 +57,24 @@
app:layout_constraintTop_toBottomOf="@id/ibExpanderAddress"
app:srcCompat="@drawable/twotone_person_off_24" />
<eu.faircode.email.ViewImageHint
android:id="@+id/ivList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:contentDescription="@string/title_legend_by_list"
app:layout_constraintStart_toEndOf="@id/ivAutoSubmitted"
app:layout_constraintTop_toBottomOf="@id/ibExpanderAddress"
app:srcCompat="@drawable/twotone_list_24"
app:tint="?attr/colorError" />
<eu.faircode.email.ViewImageHint
android:id="@+id/ivBrowsed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:contentDescription="@string/title_legend_browsed"
app:layout_constraintStart_toEndOf="@id/ivAutoSubmitted"
app:layout_constraintStart_toEndOf="@id/ivList"
app:layout_constraintTop_toBottomOf="@id/ibExpanderAddress"
app:srcCompat="@drawable/twotone_playlist_add_24" />
@ -129,7 +140,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="ivPlain,ibReceipt,ivAutoSubmitted,ivBrowsed,ivRaw,ibSearchContact,ibNotifyContact,ibPinContact,ibAddContact" />
app:constraint_referenced_ids="ivPlain,ibReceipt,ivAutoSubmitted,ivList,ivBrowsed,ivRaw,ibSearchContact,ibNotifyContact,ibPinContact,ibAddContact" />
<TextView
android:id="@+id/tvSignedByTitle"

View File

@ -2147,6 +2147,7 @@
<string name="title_legend_plain_only">Is plain text only</string>
<string name="title_legend_receipt">Receipt was requested</string>
<string name="title_legend_auto_submitted">Was automatically sent</string>
<string name="title_legend_by_list">Sent by a list</string>
<string name="title_legend_attachment">Has attachment</string>
<string name="title_legend_flagged">Is favorite</string>
<string name="title_legend_contacts">Manage contacts</string>