correcting a removed part of the pull request

This commit is contained in:
tibbi 2021-07-06 14:48:56 +02:00
parent 676978a3c5
commit 20ce0e6e56
1 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
} while(currentDayCode.toInt() <= endDayCode.toInt())
}
for (event in events) {
dayevents@ for (event in events) {
val startDateTime = Formatter.getDateTimeFromTS(event.startTS)
val startDayCode = Formatter.getDayCodeFromDateTime(startDateTime)
val endDateTime = Formatter.getDateTimeFromTS(event.endTS)
@ -444,7 +444,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
do {
val dayOfWeek = dayColumns.indexOfFirst { it.tag == currentDayCode }
if (dayOfWeek == -1 || dayOfWeek >= config.weeklyViewDays) {
continue
continue@dayevents
}
val startMinutes = when (currentDayCode == startDayCode) {