diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index f6262bc471..c17c88390b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -1360,6 +1360,7 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven public void showQuickSearch() { QuickSearchDialogFragment fragment = getQuickSearchDialogFragment(); + mapContextMenu.hide(); if (fragment != null) { fragment.show(); refreshMap(); diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchListFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchListFragment.java index 2668ab9ba3..64d7b69fcd 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchListFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchListFragment.java @@ -144,7 +144,6 @@ public abstract class QuickSearchListFragment extends OsmAndListFragment { private void showOnMap(SearchResult searchResult) { if (searchResult.location != null) { - dialogFragment.dismiss(); OsmandApplication app = getMyApplication(); PointDescription pointDescription = null; Object object = searchResult.object; @@ -188,11 +187,13 @@ public abstract class QuickSearchListFragment extends OsmAndListFragment { pointDescription = wpt.getPointDescription(getMyApplication()); break; } + getMapActivity().setQuickSearchTopbarActive(true); getMyApplication().getSettings().setMapLocationToShow( searchResult.location.getLatitude(), searchResult.location.getLongitude(), searchResult.preferredZoom, pointDescription, true, object); MapActivity.launchMapActivityMoveToTop(getActivity()); + dialogFragment.hide(); } }