You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the calendarView, the first cycle predicted for the next period is wrong if the initial period dates span across two months.
In this example, the cycle starts on 28/04 so the next cycle should start on 26/05 (using a 28 length default cycle).
I think the error is in predictFuturePeriods(...) in CalendarView.kt, l.106 :
item is in long format so item -1 won't work for a cycle across two months. Here, cycleStart should be 20210328 but is 20210401 as item -1 (20210400) is not in periodDates.
The text was updated successfully, but these errors were encountered:
In the calendarView, the first cycle predicted for the next period is wrong if the initial period dates span across two months.

In this example, the cycle starts on 28/04 so the next cycle should start on 26/05 (using a 28 length default cycle).
I think the error is in
predictFuturePeriods(...)
inCalendarView.kt, l.106
:item
is inlong
format soitem -1
won't work for a cycle across two months. Here,cycleStart
should be20210328
but is20210401
asitem -1
(20210400
) is not inperiodDates
.The text was updated successfully, but these errors were encountered: