Disable search in thread view in favor of text zoom

This commit is contained in:
M66B 2019-01-31 13:59:13 +00:00
parent abd1dab0de
commit 2d38843944
1 changed files with 2 additions and 1 deletions

View File

@ -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);