mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Small behavior improvement
This commit is contained in:
parent
83fb4bd6d0
commit
e7830366c8
1 changed files with 4 additions and 1 deletions
|
@ -2765,8 +2765,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
(viewType == AdapterMessage.ViewType.UNIFIED && !EntityFolder.DRAFTS.equals(type)) ||
|
||||
(viewType == AdapterMessage.ViewType.FOLDER && !EntityFolder.DRAFTS.equals(type));
|
||||
|
||||
menu.findItem(R.id.menu_search).setVisible(
|
||||
MenuItem menuSearch = menu.findItem(R.id.menu_search);
|
||||
menuSearch.setVisible(
|
||||
viewType == AdapterMessage.ViewType.UNIFIED || viewType == AdapterMessage.ViewType.FOLDER);
|
||||
if (!menuSearch.isVisible())
|
||||
menuSearch.collapseActionView();
|
||||
|
||||
menu.findItem(R.id.menu_folders).setVisible(viewType == AdapterMessage.ViewType.UNIFIED && primary >= 0);
|
||||
ImageButton ib = (ImageButton) menu.findItem(R.id.menu_folders).getActionView();
|
||||
|
|
Loading…
Reference in a new issue