material-dialogs
material-dialogs copied to clipboard
Changed logic regarding minDate and maxDate in dateTime module to allow currentDate to be equal to one of them
Guidelines
- You must run the
spotlessApplytask before commiting, either through Android Studio or with./gradlew spotlessApply. - A PR should be focused and contained. If you are changing multiple unrelated things, they should be in separate PRs.
- A PR should fix a bug or solve a problem - something that only you would use is not necessarily something that should be published.
- Give your PR a detailed title and description - look over your code one last time before actually creating the PR. Give it a self-review.
If you do not follow the guidelines, your PR will be rejected.
PR Description
Changed logic regarding minDate and maxDate in dateTime module to allow currentDate to be equal to one of them. This is to make it possible to have two dates as allowed dates, and preselect one of them, which was not possible before. The user was able to select one of the two dates, but the code was not allowing preselection of the dates. For example with these dates:
minDate = 2021.01.01
maxDate = 2021.01.02
currentDate = 2021.01.01