Update waypoints
This commit is contained in:
parent
d552f1d907
commit
4c2a5365d2
3 changed files with 3 additions and 2 deletions
|
@ -170,6 +170,7 @@ public class TargetPointsHelper {
|
||||||
pointToNavigate = intermediatePoints.remove(index);
|
pointToNavigate = intermediatePoints.remove(index);
|
||||||
settings.setPointToNavigate(pointToNavigate.getLatitude(), pointToNavigate.getLongitude(),
|
settings.setPointToNavigate(pointToNavigate.getLatitude(), pointToNavigate.getLongitude(),
|
||||||
pointToNavigate.pointDescription);
|
pointToNavigate.pointDescription);
|
||||||
|
pointToNavigate.intermediate = false;
|
||||||
settings.deleteIntermediatePoint(index);
|
settings.deleteIntermediatePoint(index);
|
||||||
updateRouteAndReferesh(updateRoute);
|
updateRouteAndReferesh(updateRoute);
|
||||||
}
|
}
|
||||||
|
|
|
@ -780,7 +780,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void openIntermediateEditPointsDialog() {
|
public void openIntermediateEditPointsDialog() {
|
||||||
mapActivity.getDashboard().setDashboardVisibility(true, DashboardType.WAYPOINTS);
|
mapActivity.getDashboard().setDashboardVisibility(true, DashboardType.WAYPOINTS_EDIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
private TargetPointsHelper getTargets() {
|
private TargetPointsHelper getTargets() {
|
||||||
|
|
|
@ -504,7 +504,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refreshContent(boolean force) {
|
public void refreshContent(boolean force) {
|
||||||
if (visibleType == DashboardType.WAYPOINTS || force) {
|
if (visibleType == DashboardType.WAYPOINTS || visibleType == DashboardType.WAYPOINTS_EDIT || force) {
|
||||||
updateListAdapter();
|
updateListAdapter();
|
||||||
} else {
|
} else {
|
||||||
listAdapter.notifyDataSetChanged();
|
listAdapter.notifyDataSetChanged();
|
||||||
|
|
Loading…
Reference in a new issue