-
Notifications
You must be signed in to change notification settings - Fork 559
Add disabled days to calendar date picker #223
Add disabled days to calendar date picker #223
Conversation
Can one of the admins verify this patch? |
Hello @TylerMcCraw Thank you for the PR |
Hi @TylerMcCraw |
I'm using a HashMap for efficiency purposes in checking if the day that is currently being drawn is a disabled day. |
When view was destroyed, the disabled days would no longer show.
I've pushed two more commits to fix one minor issue with the dialog as it is destroyed and to add one minor feature to allow users to also change text color of disabled days if they would prefer to change the text color rather than changing the background color of disabled days. |
Hi @TylerMcCraw, thank you for the great quality of your contribution. What do you think of this ? |
@CedricGatay I agree and that's definitely doable. What are your thoughts on this? I can continue making CalendarDay implement Parcelable or is there another way for us to ensure the disabled days aren't lost when the fragment is destroyed and recreated? Thanks! |
@TylerMcCraw Make CalendarDay Parcelable is a good solution. So keep on this way |
Finished! |
@TylerMcCraw nice job I'll test it in the next days |
@TylerMcCraw can you please rebase your work as it now contains conflict. Sorry for the delay reviewing it, we have a lot of things to do.... |
@CedricGatay Sorry for the late response. I'm going to try to rebase it today to fix any conflicts. |
# Conflicts: # library/src/main/java/com/codetroopers/betterpickers/calendardatepicker/CalendarDatePickerDialogFragment.java # sample/src/main/res/values/colors.xml
@CedricGatay I've now made my fixes, merged with the main master branch, and resolved conflicts. Thanks again. |
Thank you @TylerMcCraw I will look at it soon. Thank you for rebasing your work. @team it seems that our Cloudbees build is somehow broken when it comes to installing build tools, we need to figure this out. |
@CedricGatay |
Ok for me too, merging |
Add disabled days to calendar date picker
Hi @TylerMcCraw |
Why?
I'd like to add support for disabling days so that users cannot select specific days defined by the application. The user should be able to visually see the days that are disabled and they should not be able to select the days that are defined as "disabled".
What Changed?