Skip to content

Commit

Permalink
Add some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Aug 28, 2019
1 parent 2746947 commit 7fd2060
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal data class MonthConfig(
if (currentMonth != endMonth) currentMonth = currentMonth.next else break
}

// Regroup data into 7 days.
// Regroup data into 7 days. Use toMutableList() to create a copy of the ephemeral list.
val allDaysGroup = allDays.chunked(7).toMutableList()

val calendarMonths = mutableListOf<CalendarMonth>()
Expand Down Expand Up @@ -226,6 +226,7 @@ internal data class MonthConfig(
groupByWeekOfMonth
} else {
// Group days by 7, first day shown on the month will be day 1.
// Use toMutableList() to create a copy of the ephemeral list.
thisMonthDays.chunked(7).toMutableList()
}

Expand Down

0 comments on commit 7fd2060

Please sign in to comment.