From 2d388439447b9e395da58494381aa69e8323d1d4 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 31 Jan 2019 13:59:13 +0000 Subject: [PATCH] Disable search in thread view in favor of text zoom --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 23f9ffd78c..23f87ad35f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1651,7 +1651,8 @@ public class FragmentMessages extends FragmentBase { boolean selection = (selectionTracker != null && selectionTracker.hasSelection()); - menu.findItem(R.id.menu_search).setVisible(viewType != AdapterMessage.ViewType.SEARCH); + menu.findItem(R.id.menu_search).setVisible( + viewType == AdapterMessage.ViewType.UNIFIED || viewType == AdapterMessage.ViewType.FOLDER); menu.findItem(R.id.menu_folders).setVisible(primary >= 0); menu.findItem(R.id.menu_folders).setIcon(connected ? R.drawable.baseline_folder_24 : R.drawable.baseline_folder_open_24);