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); 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);
} }

View file

@ -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() {

View file

@ -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();