[android] Properly sync search wheel with toolbar

Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
Arnaud Vergnet 2022-02-05 15:41:26 +01:00 committed by Viktor Govako
parent 6eada4f35d
commit be7e9bf6ea
2 changed files with 2 additions and 4 deletions

View file

@ -2022,13 +2022,13 @@ public class MwmActivity extends BaseMwmFragmentActivity
@Override
public void onSearchClearClick()
{
closePlacePage();
closeSearchToolbar(true, true);
}
@Override
public void onSearchUpClick(@Nullable String query)
{
closePlacePage();
closeFloatingToolbarsAndPanels(true, true);
showSearch(query);
}

View file

@ -34,7 +34,6 @@ public class FloatingSearchToolbarController extends SearchToolbarController
{
if (mListener != null)
mListener.onSearchUpClick(getQuery());
cancelSearchApiAndHide(true);
}
@Override
@ -52,7 +51,6 @@ public class FloatingSearchToolbarController extends SearchToolbarController
super.onClearClick();
if (mListener != null)
mListener.onSearchClearClick();
cancelSearchApiAndHide(false);
}
public void refreshQuery()