From 79b20ce1b69ffe4783430c82151272c150599c46 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 11 Oct 2019 09:02:41 +0200 Subject: [PATCH] Added message placeholder --- .../eu/faircode/email/AdapterMessage.java | 25 ++++++++----------- .../res/layout/include_message_compact.xml | 11 -------- .../res/layout/include_message_normal.xml | 11 -------- .../res/layout/item_message_placeholder.xml | 18 +++++++++++++ app/src/main/res/values/strings.xml | 1 + 5 files changed, 30 insertions(+), 36 deletions(-) create mode 100644 app/src/main/res/layout/item_message_placeholder.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index f6522902fb..de4a48705c 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -282,7 +282,6 @@ public class AdapterMessage extends RecyclerView.Adapter 0 ? Typeface.DEFAULT_BOLD : Typeface.DEFAULT); holder.tvFolder.setTextColor(message.unseen > 0 ? colorUnread : colorRead); @@ -4060,13 +4062,8 @@ public class AdapterMessage extends RecyclerView.Adapter - - diff --git a/app/src/main/res/layout/include_message_normal.xml b/app/src/main/res/layout/include_message_normal.xml index 404e4fdd4a..8902ed5e0a 100644 --- a/app/src/main/res/layout/include_message_normal.xml +++ b/app/src/main/res/layout/include_message_normal.xml @@ -325,15 +325,4 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvError" /> - - diff --git a/app/src/main/res/layout/item_message_placeholder.xml b/app/src/main/res/layout/item_message_placeholder.xml new file mode 100644 index 0000000000..85c63dc7c8 --- /dev/null +++ b/app/src/main/res/layout/item_message_placeholder.xml @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a19539c184..b9c4e06a2e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -871,6 +871,7 @@ Minutes Dismiss Snooze + Loading … Accept Decline