}
});
}
private void setRangeFor24HoursAnd0Minutes() {
SimpleSpinnerConstraint spinnerConstraint = new SimpleSpinnerConstraint();
spinnerConstraint.setMin(0);
if (minutes.getValue() == null || minutes.getValue().intValue() == 0)
spinnerConstraint.setMax(24);
else {
SimpleSpinnerConstraint spinnerConstraintMinutes = new SimpleSpinnerConstraint();
spinnerConstraintMinutes.setMin(0);
spinnerConstraintMinutes.setMax(59);
minutes.setConstraint(spinnerConstraintMinutes);
spinnerConstraint.setMax(23);
}
hours.setConstraint(spinnerConstraint);
}