Fix exception traces

This commit is contained in:
vshcherb 2014-03-29 21:36:04 +01:00
parent a5747c8e91
commit 6b09a8e33f
2 changed files with 5 additions and 2 deletions

View file

@ -513,10 +513,12 @@ public class MapActivityActions implements DialogProvider {
app.getRoutingHelper().setRoutePlanningMode(true); app.getRoutingHelper().setRoutePlanningMode(true);
// reset start point // reset start point
targets.setStartPoint(from, false, fromName); targets.setStartPoint(from, false, fromName);
// then calculate gpx // then set gpx
setGPXRouteParams(gpxFile); setGPXRouteParams(gpxFile);
if(from != null) {
targets.updateRoutingHelper(); targets.updateRoutingHelper();
}
mapActivity.getMapViewTrackingUtilities().switchToRoutePlanningMode(); mapActivity.getMapViewTrackingUtilities().switchToRoutePlanningMode();
mapActivity.getMapView().refreshMap(true); mapActivity.getMapView().refreshMap(true);
if(targets.hasTooLongDistanceToNavigate()) { if(targets.hasTooLongDistanceToNavigate()) {

View file

@ -274,6 +274,7 @@ public class MapRoutePreferencesControl extends MapControls {
private void setupSpinner(View settingsDlg) { private void setupSpinner(View settingsDlg) {
final Spinner gpxSpinner = (Spinner) settingsDlg.findViewById(R.id.GPXRouteSpinner); final Spinner gpxSpinner = (Spinner) settingsDlg.findViewById(R.id.GPXRouteSpinner);
gpxSpinner.setOnItemSelectedListener(null);
updateSpinnerItems(gpxSpinner); updateSpinnerItems(gpxSpinner);
gpxSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { gpxSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {