finalize fix for "tabswitch with origin changed" bug for coordinate and history search. Transport search still needs to be checked.
This commit is contained in:
parent
d41c0c5e37
commit
6f2a322d2e
2 changed files with 4 additions and 0 deletions
|
@ -166,6 +166,8 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.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;
|
location = null;
|
||||||
OsmandApplication app = (OsmandApplication) getActivity().getApplication();
|
OsmandApplication app = (OsmandApplication) getActivity().getApplication();
|
||||||
//Intent intent = getSherlockActivity().getIntent();
|
//Intent intent = getSherlockActivity().getIntent();
|
||||||
|
|
|
@ -73,6 +73,8 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.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;
|
location = null;
|
||||||
FragmentActivity activity = getActivity();
|
FragmentActivity activity = getActivity();
|
||||||
Intent intent = activity.getIntent();
|
Intent intent = activity.getIntent();
|
||||||
|
|
Loading…
Reference in a new issue