Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent the invalid dates in DatePicker in grey color. #2019

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

rajat4064g
Copy link
Collaborator

@rajat4064g rajat4064g commented Feb 1, 2024

WHAT

Make the invalid dates (dates before fromDate and after toDate) visible in DatePicker but represent them in grey color.
This also solves the retaining of previous day value in the day picker if month picker is scrolled.

WHY

HOW

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

@yschimke
Copy link
Collaborator

yschimke commented Feb 1, 2024

Can you add a test to com.google.android.horologist.screensizes.DatePickerTest that covers this?

Would be good to see the result visually.

But I'm probably not the right person to review.

Copy link
Collaborator

@BowerSteve BowerSteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add from-date and to-date samples into the Horologist sample app.

@rajat4064g rajat4064g force-pushed the greypicker branch 2 times, most recently from 35488ad to 7ac2c6a Compare February 2, 2024 07:20
Copy link
Collaborator

@BowerSteve BowerSteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks!

@yschimke yschimke merged commit 4e139ff into google:main Feb 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants