complete change for missing distance update upon origin change in SearchHistoryFragment
This commit is contained in:
parent
46e72e5bc6
commit
ed17ced7ba
1 changed files with 1 additions and 2 deletions
|
@ -89,6 +89,7 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
|
|||
if (location == null) {
|
||||
location = ((OsmandApplication) activity.getApplication()).getSettings().getLastKnownMapLocation();
|
||||
}
|
||||
locationUpdate(location);
|
||||
clearButton.setVisibility(historyAdapter.isEmpty() ? View.GONE : View.VISIBLE);
|
||||
|
||||
}
|
||||
|
@ -97,8 +98,6 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
|
|||
public void locationUpdate(LatLon l) {
|
||||
location = l;
|
||||
if(historyAdapter != null) {
|
||||
//historyAdapter.notifyDataSetChanged();
|
||||
//This did not update distances when origin was changed, try this:
|
||||
historyAdapter.updateLocation(l);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue