Fix exception traces
This commit is contained in:
parent
a5747c8e91
commit
6b09a8e33f
2 changed files with 5 additions and 2 deletions
|
@ -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()) {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue