Skip to content

Commit

Permalink
Simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-petrakov committed Aug 28, 2019
1 parent 464fbbd commit 2de3f1a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ internal data class MonthConfig(
}

// Regroup data into 7 days.
val allDaysGroup = mutableListOf<List<CalendarDay>>()
allDaysGroup.addAll(allDays.chunked(7))
val allDaysGroup = allDays.chunked(7).toMutableList()

val calendarMonths = mutableListOf<CalendarMonth>()
val calMonthsCount = allDaysGroup.size roundDiv maxRowCount
Expand Down Expand Up @@ -227,8 +226,7 @@ internal data class MonthConfig(
groupByWeekOfMonth
} else {
// Group days by 7, first day shown on the month will be day 1.
val groupBySeven = thisMonthDays.chunked(7).toMutableList()
groupBySeven
thisMonthDays.chunked(7).toMutableList()
}


Expand Down

0 comments on commit 2de3f1a

Please sign in to comment.