Merge pull request #2138 from Aga-C/fix-long-events

Fixed displaying long events in weekly view (#2135)
This commit is contained in:
Tibor Kaputa 2023-07-14 14:27:39 +02:00 committed by GitHub
commit e24b226344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -552,7 +552,13 @@ class WeekFragment : Fragment(), WeeklyCalendar {
do {
val dayOfWeek = dayColumns.indexOfFirst { it.tag == currentDayCode }
if (dayOfWeek == -1 || dayOfWeek >= config.weeklyViewDays) {
continue@dayevents
if (startDayCode != endDayCode) {
currentDateTime = currentDateTime.plusDays(1)
currentDayCode = Formatter.getDayCodeFromDateTime(currentDateTime)
continue
} else {
continue@dayevents
}
}
val dayColumn = dayColumns[dayOfWeek]