From cb68190e37c4fb0c61daf540f14b4a8f5410e3cc Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Fri, 29 Jul 2016 11:18:49 +0300 Subject: [PATCH] [Quick search] fixes --- .../net/osmand/plus/search/QuickSearchDialogFragment.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java index d14f4a0837..a05515d433 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchDialogFragment.java @@ -165,11 +165,8 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC } app.getPoiFilters().clearSelectedPoiFilters(); app.getPoiFilters().addSelectedPoiFilter(filter); - if (location != null) { - settings.setMapLocationToShow(location.getLatitude(), location.getLongitude(), 15); - } getMapActivity().setQuickSearchTopbarActive(searchPhrase.isNoSelectedType()); - MapActivity.launchMapActivityMoveToTop(getActivity()); + getMapActivity().refreshMap(); if (searchPhrase.isNoSelectedType()) { hide(); } else { @@ -346,9 +343,11 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC updateLocationUI(mapCenter, null); } getDialog().show(); + paused = false; } public void hide() { + paused = true; getDialog().hide(); }