mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
[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:
parent
1d3bb00de2
commit
2fa78da1a2
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user