From 49418480a752388d0697dcfea7d8ffadc3efb5fd Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 19 Jan 2019 16:14:40 +0000 Subject: [PATCH] Show browsed/searched messages --- .../eu/faircode/email/AdapterMessage.java | 5 ++ .../res/drawable/baseline_playlist_add_24.xml | 10 +++ app/src/main/res/layout/fragment_legend.xml | 68 ++++++++++++------- .../main/res/layout/item_message_compact.xml | 12 +++- .../main/res/layout/item_message_normal.xml | 12 +++- app/src/main/res/values/strings.xml | 3 +- 6 files changed, 84 insertions(+), 26 deletions(-) create mode 100644 app/src/main/res/drawable/baseline_playlist_add_24.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index e8f1f7a233..459ea1423b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -154,6 +154,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? View.VISIBLE : View.GONE); ivSnoozed.setVisibility(message.ui_snoozed == null ? View.GONE : View.VISIBLE); + ivBrowsed.setVisibility(message.ui_browsed ? View.VISIBLE : View.GONE); ivAnswered.setVisibility(message.ui_answered ? View.VISIBLE : View.GONE); ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE); btnDownloadAttachments.setVisibility(View.GONE); diff --git a/app/src/main/res/drawable/baseline_playlist_add_24.xml b/app/src/main/res/drawable/baseline_playlist_add_24.xml new file mode 100644 index 0000000000..d5dcada7c5 --- /dev/null +++ b/app/src/main/res/drawable/baseline_playlist_add_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layout/fragment_legend.xml b/app/src/main/res/layout/fragment_legend.xml index 61a5611574..1dae006cfe 100644 --- a/app/src/main/res/layout/fragment_legend.xml +++ b/app/src/main/res/layout/fragment_legend.xml @@ -197,27 +197,6 @@ app:layout_constraintStart_toEndOf="@id/ivCC" app:layout_constraintTop_toTopOf="@id/ivCC" /> - - - - + app:layout_constraintTop_toBottomOf="@id/ivCC" /> + + + + + + + + + + app:layout_constraintTop_toBottomOf="@id/ivBrowsed" /> + + + + Conversation CC/BCC Attachment - Snoozed Draft/edit + Snoozed + Browsed or searched Answered Contacts View content