From 07ce718e3c00a135c4a4a4341a35841ff2de8799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 3 Dec 2019 19:42:25 +0100 Subject: [PATCH] [Widget] Fix showing all-day event on every lesson. --- app/src/main/java/pl/szczodrzynski/edziennik/WidgetTimetable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/WidgetTimetable.kt b/app/src/main/java/pl/szczodrzynski/edziennik/WidgetTimetable.kt index fd276553..d698bab9 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/WidgetTimetable.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/WidgetTimetable.kt @@ -255,7 +255,7 @@ class WidgetTimetable : AppWidgetProvider() { // add every event on this lesson for (event in events) { - if (event.startTime != null && event.startTime != lesson.displayStartTime) + if (event.startTime == null || event.startTime != lesson.displayStartTime) continue model.eventColors.add(if (event.type == TYPE_HOMEWORK) ItemWidgetTimetableModel.EVENT_COLOR_HOMEWORK else event.getColor()) }