Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2014-12-31 00:23:24 +01:00
commit c225db8b8d

View file

@ -168,16 +168,16 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
super.onResume(); super.onResume();
LatLon location = null; LatLon location = null;
OsmandApplication app = (OsmandApplication) getActivity().getApplication(); OsmandApplication app = (OsmandApplication) getActivity().getApplication();
Intent intent = getSherlockActivity().getIntent(); //Intent intent = getSherlockActivity().getIntent();
if (intent != null) { //if (intent != null) {
if (intent.hasExtra(SearchActivity.SEARCH_LAT) && intent.hasExtra(SearchActivity.SEARCH_LON)) { // if (intent.hasExtra(SearchActivity.SEARCH_LAT) && intent.hasExtra(SearchActivity.SEARCH_LON)) {
double lat = intent.getDoubleExtra(SearchActivity.SEARCH_LAT, 0); // double lat = intent.getDoubleExtra(SearchActivity.SEARCH_LAT, 0);
double lon = intent.getDoubleExtra(SearchActivity.SEARCH_LON, 0); // double lon = intent.getDoubleExtra(SearchActivity.SEARCH_LON, 0);
if (lat != 0 || lon != 0) { // if (lat != 0 || lon != 0) {
location = new LatLon(lat, lon); // location = new LatLon(lat, lon);
} // }
} // }
} //}
if (location == null && getActivity() instanceof SearchActivity) { if (location == null && getActivity() instanceof SearchActivity) {
location = ((SearchActivity) getActivity()).getSearchPoint(); location = ((SearchActivity) getActivity()).getSearchPoint();
} }