question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot access CalendarConstraints' properties like getStart, getEnd, etc.

See original GitHub issue

In latest MDC version getting properties like getStart or getEnd seems no longer available. You can only get the date validator.

Using 1.7.0-alpha03

 val x = CalendarConstraints.Builder()
            .setStart(oldestDate)
            .setEnd(minDate)
            .setOpenAt(minDate)
            .setValidator(DateValidatorPointBackward.before(minDate)) // Disable future days
            .build()
        
            x.dateValidator

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
imhappicommented, Sep 29, 2022

it should be included in the next alpha release

0reactions
drchencommented, Oct 4, 2022

Android Dev Summit: https://developer.android.com/events/dev-summit

Not sure where is this year’s announcement though…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot access CalendarConstraints' properties like getStart, getEnd ...
In latest MDC version getting properties like getStart or getEnd seems no longer available. You can only get the date validator. Using 1.7.0-alpha03...
Read more >
material-components-android - bytemeta
Cannot access CalendarConstraints ' properties like getStart, getEnd, etc. ericsia. ericsia CLOSED · Updated 1 month ago ...
Read more >
afohrman - Github Plus
Cannot access CalendarConstraints ' properties like getStart, getEnd, etc. In latest MDC version getting properties like getStart or getEnd seems no longer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found