fix a bug

This commit is contained in:
hlq07 2018-05-12 12:34:17 +08:00
parent 4e22180a37
commit 19f4f9cc9e
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ public class PaintCalendarStrategy {
public void paintCalendar(@NotNull Calendar date, @NotNull List<CalendarUnit> days) {
mNow = (Calendar) date.clone();
mYear.setText(Integer.toString(date.get(Calendar.YEAR)));
mMonth.setText(Integer.toString(date.get(Calendar.MONTH) + 1));
Calendar monthBegin = CalendarUtil.getMonthBegin(date);
Calendar monthEnd = CalendarUtil.getMonthEnd(date);