From f9c74927263a6ef3ff8e6cc52ea903735532d366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 7 Jan 2020 10:14:43 +0100 Subject: [PATCH] [Widget/Timetable] Fix past lessons (today) not displayed. --- .../edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt index 6d7e712d..4f81356b 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/widgets/timetable/WidgetTimetableProvider.kt @@ -219,7 +219,7 @@ class WidgetTimetableProvider : AppWidgetProvider() { var lessons = lessonList.filter { it.profileId == profile.id && it.displayDate == timetableDate - && it.displayEndTime > now + /*&& it.displayEndTime > now*/ && !(it.isCancelled && ignoreCancelled) } while ((lessons.isEmpty() || lessons.none {