[Catalog] Fix DatePicker when the "Last 2 weeks" option is selected

Resolves https://github.com/material-components/material-components-android/pull/2679

GIT_ORIGIN_REV_ID=f59ca7cb7d68e2762bf505e5dcffc84f4cf36bb8
PiperOrigin-RevId: 446198395
This commit is contained in:
pubiqq 2022-05-03 11:20:46 -04:00 committed by Daniel Nizri
parent 1d3bb00de2
commit 2fa78da1a2

View File

@ -214,7 +214,7 @@ public class DatePickerMainDemoFragment extends DemoFragment {
List<CalendarConstraints.DateValidator> validators = new ArrayList<>();
validators.add(DateValidatorPointForward.from(lowerBound));
validators.add(new DateValidatorWeekdays());
validators.add(DateValidatorPointBackward.now());
constraintsBuilder.setValidator(CompositeDateValidator.allOf(validators));
} else if ((validationChoice == R.id.cat_picker_validation_multiple_range)) {