private int getDayForDate(@NonNull LocalDate date) {
return firstDay.until(date).getDays();
}
This method is supposed to get the offset of days from first day. But in fact it only get the days of month. As a result, selectDay and setDateIndicator won't work correctly.
This method is supposed to get the offset of days from first day. But in fact it only get the days of month. As a result, selectDay and setDateIndicator won't work correctly.
This would be correct:
or