calendar fix

This commit is contained in:
Ilia Kurtov 2016-12-01 12:42:18 +03:00
parent a5c0421e3f
commit 9a768697ef
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ public final class CalendarUtils {
final int firstDayInNextMonth = nextMonthFirstDay.getDayOfWeek() - 1;
calendarItems.add(new CalendarEmptyItem(shift + 1, shift + (7 - firstDayInNextMonth)));
shift += 7 - firstDayInNextMonth + 1;
calendarItems.add(new CalendarHeaderItem(nextMonthFirstDay.getMonthOfYear() + 1, shift, shift));
calendarItems.add(new CalendarHeaderItem(nextMonthFirstDay.getMonthOfYear() - 1, shift, shift));
shift += 1;
calendarItems.add(new CalendarEmptyItem(shift, shift + firstDayInNextMonth - 1));
}