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

error first day of week Sunday to last day of week Monday #2

Closed
pandes opened this issue Jun 3, 2015 · 2 comments
Closed

error first day of week Sunday to last day of week Monday #2

pandes opened this issue Jun 3, 2015 · 2 comments

Comments

@pandes
Copy link

pandes commented Jun 3, 2015

Error first day of week Sunday to last day of week Saturday.

@pandes
Copy link
Author

pandes commented Jun 5, 2015

I add in CalendarView.java

private void createHeaders() {
...
do {
...
 } while(dayOfWeek != (lastDayOfWeek % 7 + 1));
...
}

And add in CalendarView.java too

protected void initView() {
...
while((currentDay.get(Calendar.MONTH) + 1) % MONTHS_IN_YEAR == currentMonth ||
                    currentDay.get(Calendar.MONTH) == currentMonth ||
                 currentDay.get(Calendar.DAY_OF_WEEK) != (lastDayOfWeek % 7 + 1)) {
....

Now it works perfectly.

@rameshvoltella
Copy link

if bug is fix then close the issue

@pandes pandes closed this as completed Nov 27, 2015
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

No branches or pull requests

2 participants