Update waypoints

This commit is contained in:
Victor Shcherb 2015-11-16 02:32:34 +01:00
parent d552f1d907
commit 4c2a5365d2
3 changed files with 3 additions and 2 deletions

View file

@ -170,6 +170,7 @@ public class TargetPointsHelper {
pointToNavigate = intermediatePoints.remove(index);
settings.setPointToNavigate(pointToNavigate.getLatitude(), pointToNavigate.getLongitude(),
pointToNavigate.pointDescription);
pointToNavigate.intermediate = false;
settings.deleteIntermediatePoint(index);
updateRouteAndReferesh(updateRoute);
}

View file

@ -780,7 +780,7 @@ public class MapActivityActions implements DialogProvider {
}
public void openIntermediateEditPointsDialog() {
mapActivity.getDashboard().setDashboardVisibility(true, DashboardType.WAYPOINTS);
mapActivity.getDashboard().setDashboardVisibility(true, DashboardType.WAYPOINTS_EDIT);
}
private TargetPointsHelper getTargets() {

View file

@ -504,7 +504,7 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
}
public void refreshContent(boolean force) {
if (visibleType == DashboardType.WAYPOINTS || force) {
if (visibleType == DashboardType.WAYPOINTS || visibleType == DashboardType.WAYPOINTS_EDIT || force) {
updateListAdapter();
} else {
listAdapter.notifyDataSetChanged();