From d6c20dfc49a5517f5c7606b640c4dec56e15da71 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 31 Dec 2014 00:23:08 +0100 Subject: [PATCH] try without intent --- .../activities/NavigatePointFragment.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index ad2bc5220b..eb75d32f32 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -168,16 +168,16 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct super.onResume(); LatLon location = null; OsmandApplication app = (OsmandApplication) getActivity().getApplication(); - Intent intent = getSherlockActivity().getIntent(); - if (intent != null) { - if (intent.hasExtra(SearchActivity.SEARCH_LAT) && intent.hasExtra(SearchActivity.SEARCH_LON)) { - double lat = intent.getDoubleExtra(SearchActivity.SEARCH_LAT, 0); - double lon = intent.getDoubleExtra(SearchActivity.SEARCH_LON, 0); - if (lat != 0 || lon != 0) { - location = new LatLon(lat, lon); - } - } - } + //Intent intent = getSherlockActivity().getIntent(); + //if (intent != null) { + // if (intent.hasExtra(SearchActivity.SEARCH_LAT) && intent.hasExtra(SearchActivity.SEARCH_LON)) { + // double lat = intent.getDoubleExtra(SearchActivity.SEARCH_LAT, 0); + // double lon = intent.getDoubleExtra(SearchActivity.SEARCH_LON, 0); + // if (lat != 0 || lon != 0) { + // location = new LatLon(lat, lon); + // } + // } + //} if (location == null && getActivity() instanceof SearchActivity) { location = ((SearchActivity) getActivity()).getSearchPoint(); }