[Quick search] fixes

This commit is contained in:
Alexey Kulish 2016-07-29 11:18:49 +03:00
parent d68566fac5
commit cb68190e37

View file

@ -165,11 +165,8 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
} }
app.getPoiFilters().clearSelectedPoiFilters(); app.getPoiFilters().clearSelectedPoiFilters();
app.getPoiFilters().addSelectedPoiFilter(filter); app.getPoiFilters().addSelectedPoiFilter(filter);
if (location != null) {
settings.setMapLocationToShow(location.getLatitude(), location.getLongitude(), 15);
}
getMapActivity().setQuickSearchTopbarActive(searchPhrase.isNoSelectedType()); getMapActivity().setQuickSearchTopbarActive(searchPhrase.isNoSelectedType());
MapActivity.launchMapActivityMoveToTop(getActivity()); getMapActivity().refreshMap();
if (searchPhrase.isNoSelectedType()) { if (searchPhrase.isNoSelectedType()) {
hide(); hide();
} else { } else {
@ -346,9 +343,11 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
updateLocationUI(mapCenter, null); updateLocationUI(mapCenter, null);
} }
getDialog().show(); getDialog().show();
paused = false;
} }
public void hide() { public void hide() {
paused = true;
getDialog().hide(); getDialog().hide();
} }