[Quick search] added topbar for latlon objects
This commit is contained in:
parent
3ed09c9241
commit
5ebbc9db89
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue