[Timetable] Ignore last lessons if cancelled and jump to the next day.

This commit is contained in:
Kuba Szczodrzyński 2020-03-03 18:06:55 +01:00
parent ee43d40680
commit 30044d6b21
2 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,7 @@ class HomeTimetableCard(
|| (it.displayDate == today
&& it.displayEndTime != null
&& it.displayEndTime!! >= now))
&& !it.isCancelled
}) && checkedDays < 7) {
timetableDate.stepForward(0, 0, 1)

View File

@ -219,6 +219,7 @@ class WidgetTimetableProvider : AppWidgetProvider() {
|| (it.displayDate == today
&& it.displayEndTime != null
&& it.displayEndTime!! >= now))
&& !it.isCancelled
}) && checkedDays < 7) {
timetableDate.stepForward(0, 0, 1)