Merge branch 'master' of github.com:SimpleMobileTools/Simple-Calendar

This commit is contained in:
tibbi 2021-07-05 23:21:11 +02:00
commit af02ad76e5
1 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,10 @@ class MonthDayFragment : Fragment(), MonthlyCalendar, RefreshRecyclerViewListene
val startDateTime = Formatter.getDateTimeFromTS(it.startTS)
shownMonthDateTime.year == startDateTime.year && shownMonthDateTime.monthOfYear == startDateTime.monthOfYear
} else {
Formatter.getDayCodeFromTS(it.startTS) == mSelectedDayCode
val selectionDate = Formatter.getDateTimeFromCode(mSelectedDayCode).toLocalDate()
val startDate = Formatter.getDateFromTS(it.startTS)
val endDate = Formatter.getDateFromTS(it.endTS)
selectionDate in startDate..endDate
}
}