From 863a9ca9885ff1096731a78d90d81fa55a7acef7 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 29 Oct 2019 08:18:54 +0100 Subject: [PATCH] Added select found --- .../main/java/eu/faircode/email/FragmentMessages.java | 2 ++ app/src/main/res/menu/menu_messages.xml | 9 +++++---- app/src/main/res/values/strings.xml | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 71bddf0718..7fc94c528d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2730,6 +2730,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. menu.findItem(R.id.menu_select_all).setVisible(!outbox && (viewType == AdapterMessage.ViewType.UNIFIED || viewType == AdapterMessage.ViewType.FOLDER)); + menu.findItem(R.id.menu_select_found).setVisible(viewType == AdapterMessage.ViewType.SEARCH); menu.findItem(R.id.menu_empty_trash).setVisible( viewType == AdapterMessage.ViewType.FOLDER && EntityFolder.TRASH.equals(type)); menu.findItem(R.id.menu_empty_spam).setVisible( @@ -2820,6 +2821,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. return true; case R.id.menu_select_all: + case R.id.menu_select_found: onMenuSelectAll(); return true; diff --git a/app/src/main/res/menu/menu_messages.xml b/app/src/main/res/menu/menu_messages.xml index 68b27c05fb..fb8c402633 100644 --- a/app/src/main/res/menu/menu_messages.xml +++ b/app/src/main/res/menu/menu_messages.xml @@ -93,25 +93,26 @@ + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 95615b7811..f4962ea9da 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -702,6 +702,7 @@ Compact view Text size Select all + Select found Force sync Previous