diff --git a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java index 8e3e858e38..22c201dbaa 100644 --- a/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/NavigatePointFragment.java @@ -166,6 +166,8 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct @Override public void onResume() { super.onResume(); + + //Hardy: onResume() code is needed so that search origin is properly reflected in tab contents when origin has been changed on one tab, then tab is changed to another one. location = null; OsmandApplication app = (OsmandApplication) getActivity().getApplication(); //Intent intent = getSherlockActivity().getIntent(); diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java index 6cdafdf82f..d26a4f963f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchHistoryFragment.java @@ -73,6 +73,8 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear @Override public void onResume() { super.onResume(); + + //Hardy: onResume() code is needed so that search origin is properly reflected in tab contents when origin has been changed on one tab, then tab is changed to another one. location = null; FragmentActivity activity = getActivity(); Intent intent = activity.getIntent();