na navigation after just adding waypoints
This commit is contained in:
parent
9150a53856
commit
22935834bf
1 changed files with 5 additions and 5 deletions
|
@ -1295,18 +1295,18 @@ public class MapActivityActions implements DialogProvider {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
if(which == 0) {
|
if(which == 0) {
|
||||||
settings.setPointToNavigate(lat, lon, true, name);
|
settings.setPointToNavigate(lat, lon, false, name);
|
||||||
} else if(which == 2) {
|
} else if(which == 2) {
|
||||||
int sz = targetPointsHelper.getIntermediatePoints().size();
|
int sz = targetPointsHelper.getIntermediatePoints().size();
|
||||||
LatLon pt = targetPointsHelper.getPointToNavigate();
|
LatLon pt = targetPointsHelper.getPointToNavigate();
|
||||||
settings.insertIntermediatePoint(lat, lon, name, sz, true);
|
settings.insertIntermediatePoint(lat, lon, name, sz, false);
|
||||||
settings.setPointToNavigate(pt.getLatitude(), pt.getLongitude(), true, settings.getPointNavigateDescription());
|
settings.setPointToNavigate(pt.getLatitude(), pt.getLongitude(), false, settings.getPointNavigateDescription());
|
||||||
// I believe the following prior code was buggy, Hardy 2013-06-10:
|
// I believe the following prior code was buggy, Hardy 2013-06-10:
|
||||||
//settings.insertIntermediatePoint(pt.getLatitude(), pt.getLongitude(),
|
//settings.insertIntermediatePoint(pt.getLatitude(), pt.getLongitude(),
|
||||||
// settings.getPointNavigateDescription(), sz, true);
|
// settings.getPointNavigateDescription(), sz, true);
|
||||||
//settings.setPointToNavigate(lat, lon, true, name);
|
//settings.setPointToNavigate(lat, lon, true, name);
|
||||||
} else {
|
} else {
|
||||||
settings.insertIntermediatePoint(lat, lon, name, 0, true);
|
settings.insertIntermediatePoint(lat, lon, name, 0, false);
|
||||||
}
|
}
|
||||||
targetPointsHelper.updatePointsFromSettings();
|
targetPointsHelper.updatePointsFromSettings();
|
||||||
// Issue 1929 TODO: do not go to 'Directions' here
|
// Issue 1929 TODO: do not go to 'Directions' here
|
||||||
|
@ -1315,7 +1315,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
});
|
});
|
||||||
builder.show();
|
builder.show();
|
||||||
} else {
|
} else {
|
||||||
settings.setPointToNavigate(lat, lon, true, name);
|
settings.setPointToNavigate(lat, lon, false, name);
|
||||||
targetPointsHelper.updatePointsFromSettings();
|
targetPointsHelper.updatePointsFromSettings();
|
||||||
// Issue 1929 TODO: do not go to 'Directions' here
|
// Issue 1929 TODO: do not go to 'Directions' here
|
||||||
//MapActivity.launchMapActivityMoveToTop(act);
|
//MapActivity.launchMapActivityMoveToTop(act);
|
||||||
|
|
Loading…
Reference in a new issue