Try fix issue where distances in serach history tab are not updated when origin is changed

This commit is contained in:
sonora 2014-12-30 01:22:14 +01:00
parent 6627a4d2b5
commit d347cce3b3

View file

@ -89,7 +89,7 @@ public class SearchHistoryFragment extends SherlockListFragment implements Sear
if (location == null) { if (location == null) {
location = ((OsmandApplication) activity.getApplication()).getSettings().getLastKnownMapLocation(); location = ((OsmandApplication) activity.getApplication()).getSettings().getLastKnownMapLocation();
} }
locationUpdate(location);
clearButton.setVisibility(historyAdapter.isEmpty() ? View.GONE : View.VISIBLE); clearButton.setVisibility(historyAdapter.isEmpty() ? View.GONE : View.VISIBLE);
} }