From 6f2a322d2e189020172f8b616de31a1abcb5ce20 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 31 Dec 2014 11:21:39 +0100 Subject: [PATCH] finalize fix for "tabswitch with origin changed" bug for coordinate and history search. Transport search still needs to be checked. --- .../src/net/osmand/plus/activities/NavigatePointFragment.java | 2 ++ .../osmand/plus/activities/search/SearchHistoryFragment.java | 2 ++ 2 files changed, 4 insertions(+) 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();