forked from organicmaps/organicmaps
[android] Properly sync search wheel with toolbar
Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
parent
6eada4f35d
commit
be7e9bf6ea
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue