google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
458 stars 238 forks source link

Date Picker Constraint Issue Fix. #2514

Open AdityaKBhadragond14 opened 1 month ago

AdityaKBhadragond14 commented 1 month ago

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Fixes #2508

Description The MaterialDatePicker Builder has been modified such that if the questionnaire item has the minimum date extension added then the MaterialDatePicker.setSelection() will have that minimum date from extension else it will get the local date. This way it will select the first valid date based on the constraints added for date.

Alternative(s) considered Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type Bug Fix

Screenshots (if applicable)

Checklist

AdityaKBhadragond14 commented 2 weeks ago

Thanks Aditya for this PR. Can you address the comments ?

I have addressed the comments. Please do a re-review. Thanks.