From 8ac235791f33d7ea6a1f85e6eb996d7f0c8008d3 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 3 Aug 2018 13:57:57 +0000 Subject: [PATCH] Move thread action to the right and show if available only --- .../main/java/eu/faircode/email/FragmentMessage.java | 2 ++ app/src/main/res/menu/action_view_top.xml | 12 ++++++------ app/src/main/res/values/strings.xml | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessage.java b/app/src/main/java/eu/faircode/email/FragmentMessage.java index 5657fd1b..2718da45 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessage.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessage.java @@ -240,6 +240,8 @@ public class FragmentMessage extends Fragment { db.attachment().liveAttachments(id).removeObservers(FragmentMessage.this); db.attachment().liveAttachments(id).observe(FragmentMessage.this, attachmentsObserver); + top_navigation.getMenu().findItem(R.id.action_thread).setVisible(message.count > 1); + MenuItem actionSeen = top_navigation.getMenu().findItem(R.id.action_seen); actionSeen.setIcon(message.ui_seen ? R.drawable.baseline_visibility_off_24 diff --git a/app/src/main/res/menu/action_view_top.xml b/app/src/main/res/menu/action_view_top.xml index b647715d..815b1d40 100644 --- a/app/src/main/res/menu/action_view_top.xml +++ b/app/src/main/res/menu/action_view_top.xml @@ -2,18 +2,18 @@ - - + + Re: %1$s Fwd: %1$s + Thread Read Unread - Thread Move Forward Reply to all