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

Fix - Issue with firstDayOfWeek showing wrong week #295

Merged
merged 4 commits into from
May 12, 2016

Conversation

quentin41500
Copy link
Member

#222, #292

Review: @ekchang @chahinem @Jogan

@@ -1214,14 +1215,38 @@ private static int getThemeAccentColor(Context context) {
* @see java.util.Calendar
*/
public void setFirstDayOfWeek(int day) {
adapter.setFirstDayOfWeek(day);
firstDayOfWeek = day;
CalendarPagerAdapter<?> newAdapter;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add TODO to consider a less nuclear means of resetting the adapter when setting a new first day of week and how regular notifyDataSetChanged doesn't work (may require updating getItemPosition to flag current object and the ones to the left/right as changed)

@ekchang
Copy link
Contributor

ekchang commented May 12, 2016

👍 LGTM
There are some state related issues which I will address in the next PR (because I need them fixed for maxDate). Namely from migrateStateAndReturn.

@ekchang ekchang merged commit 9b221a8 into future-1.x May 12, 2016
@ekchang ekchang deleted the week_mode_issues branch May 12, 2016 18:34
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.

2 participants