Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5e3b62ca9b
2 changed files with 10 additions and 4 deletions
|
@ -247,7 +247,9 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
|
|||
Object obj = listAdapter.getItem(position);
|
||||
if (obj instanceof LocationPointWrapper) {
|
||||
LocationPointWrapper w = (LocationPointWrapper) obj;
|
||||
return !((TargetPoint) w.getPoint()).start;
|
||||
if (w.getPoint() instanceof TargetPoint) {
|
||||
return !((TargetPoint) w.getPoint()).start;
|
||||
}
|
||||
}
|
||||
return activeObjects.contains(obj);
|
||||
}
|
||||
|
@ -332,7 +334,9 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis
|
|||
Object item = items.get(0);
|
||||
if (item instanceof LocationPointWrapper) {
|
||||
LocationPointWrapper w = (LocationPointWrapper) item;
|
||||
return ((TargetPoint) w.getPoint()).start;
|
||||
if (w.getPoint() instanceof TargetPoint) {
|
||||
return ((TargetPoint) w.getPoint()).start;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -388,7 +388,7 @@ public class WaypointDialogHelper {
|
|||
move.setVisibility(View.GONE);
|
||||
} else {
|
||||
boolean notFlatTargets = point.type == WaypointHelper.TARGETS && !flat;
|
||||
boolean startPoint = ((TargetPoint) point.point).start;
|
||||
boolean startPoint = notFlatTargets && ((TargetPoint) point.point).start;
|
||||
final TargetPointsHelper targetPointsHelper = app.getTargetPointsHelper();
|
||||
boolean canRemove = !targetPointsHelper.getIntermediatePoints().isEmpty();
|
||||
|
||||
|
@ -627,7 +627,9 @@ public class WaypointDialogHelper {
|
|||
Object item = items.get(0);
|
||||
if (item instanceof LocationPointWrapper) {
|
||||
LocationPointWrapper w = (LocationPointWrapper) item;
|
||||
hasActivePoints = !((TargetPoint) w.point).start;
|
||||
if (w.getPoint() instanceof TargetPoint) {
|
||||
hasActivePoints = !((TargetPoint) w.point).start;
|
||||
}
|
||||
} else {
|
||||
hasActivePoints = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue