Applandeo / Material-Calendar-View

Material Calendar View for Android
Apache License 2.0
975 stars 316 forks source link

Fix getCalendarsBetweenDates #432

Closed mtrakal closed 2 years ago

mtrakal commented 2 years ago

You need to include first day too.

        calendars.add(calendar)
        calendar.add(Calendar.DATE, it.toInt())

call calendar.add after calendars.add still hold same reference and update object in calendars list. So it increase +1 day to original object...