forked from organicmaps/organicmaps
[android] Properly stop search on click on "Add Place"
Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
parent
d927243cbb
commit
891af8701d
2 changed files with 5 additions and 7 deletions
|
@ -550,7 +550,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
setFullscreen(true);
|
||||
Framework.nativeTurnOnChoosePositionMode(isBusiness, applyPosition);
|
||||
closePlacePage();
|
||||
mSearchController.hide();
|
||||
mSearchController.cancelSearchApiAndHide(false);
|
||||
hideBookmarkCategoryToolbar();
|
||||
}
|
||||
|
||||
|
@ -1043,8 +1043,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
|
||||
if (mSearchController.hide())
|
||||
{
|
||||
SearchEngine.INSTANCE.cancelInteractiveSearch();
|
||||
mSearchController.clear();
|
||||
mSearchController.cancelSearchApiAndHide(true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1518,7 +1517,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
Context context = getApplicationContext();
|
||||
if (show)
|
||||
{
|
||||
mSearchController.hide();
|
||||
mSearchController.cancelSearchApiAndHide(false);
|
||||
hideBookmarkCategoryToolbar();
|
||||
if (mIsTabletLayout)
|
||||
{
|
||||
|
@ -1625,8 +1624,7 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
mOnmapDownloader.updateState(false);
|
||||
if (show)
|
||||
{
|
||||
mSearchController.clear();
|
||||
mSearchController.hide();
|
||||
mSearchController.cancelSearchApiAndHide(true);
|
||||
if (mFilterController != null)
|
||||
mFilterController.show(false);
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ public class FloatingSearchToolbarController extends SearchToolbarController
|
|||
}
|
||||
}
|
||||
|
||||
private void cancelSearchApiAndHide(boolean clearText)
|
||||
public void cancelSearchApiAndHide(boolean clearText)
|
||||
{
|
||||
SearchEngine.INSTANCE.cancel();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue