[Quick search] fixes
This commit is contained in:
parent
d68566fac5
commit
cb68190e37
1 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue