diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index 7f3aa88183..bde0fb5470 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -61,7 +61,8 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct public View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.navigate_point, container, false); setHasOptionsMenu(true); - + + location = null; OsmandApplication app = (OsmandApplication) getActivity().getApplication(); Intent intent = getSherlockActivity().getIntent(); if(intent != null){ @@ -165,6 +166,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct @Override public void onResume() { super.onResume(); + location = null; OsmandApplication app = (OsmandApplication) getActivity().getApplication(); //Intent intent = getSherlockActivity().getIntent(); //if (intent != null) { diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java index 8b7100571f..9a37e43462 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java @@ -40,7 +40,6 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear public static final String SEARCH_LON = SearchActivity.SEARCH_LON; private HistoryAdapter historyAdapter; - @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); @@ -74,6 +73,7 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear @Override public void onResume() { super.onResume(); + location = null; FragmentActivity activity = getActivity(); Intent intent = activity.getIntent(); if (intent != null) {