try without intent condition in SearchHistory, too
This commit is contained in:
parent
c225db8b8d
commit
0074272997
1 changed files with 8 additions and 8 deletions
|
@ -75,14 +75,14 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
FragmentActivity activity = getActivity();
|
FragmentActivity activity = getActivity();
|
||||||
Intent intent = activity.getIntent();
|
//Intent intent = activity.getIntent();
|
||||||
if (intent != null) {
|
//if (intent != null) {
|
||||||
double lat = intent.getDoubleExtra(SEARCH_LAT, 0);
|
// double lat = intent.getDoubleExtra(SEARCH_LAT, 0);
|
||||||
double lon = intent.getDoubleExtra(SEARCH_LON, 0);
|
// double lon = intent.getDoubleExtra(SEARCH_LON, 0);
|
||||||
if (lat != 0 || lon != 0) {
|
// if (lat != 0 || lon != 0) {
|
||||||
historyAdapter.location = new LatLon(lat, lon);
|
// historyAdapter.location = new LatLon(lat, lon);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
if (location == null && activity instanceof SearchActivity) {
|
if (location == null && activity instanceof SearchActivity) {
|
||||||
location = ((SearchActivity) activity).getSearchPoint();
|
location = ((SearchActivity) activity).getSearchPoint();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue