Fix : "search" in overflow menu

Removed the condition for collapsing the actionView before the menu is shown (onPrepareOptionsMenu).

Fixes #522
This commit is contained in:
vhouriet 2021-10-03 17:28:41 +02:00 committed by Niedermann IT-Dienstleistungen
parent 3a25a4b1af
commit 77099f6fcf

View file

@ -72,10 +72,9 @@ public abstract class SearchableBaseNoteFragment extends BaseNoteFragment {
searchMenuItem.expandActionView();
searchView.setQuery(searchQuery, true);
searchView.clearFocus();
} else {
searchMenuItem.collapseActionView();
}
searchMenuItem.collapseActionView();
final var searchEditFrame = searchView.findViewById(R.id
.search_edit_frame);