[Widget] Fix showing all-day event on every lesson.

This commit is contained in:
Kuba Szczodrzyński 2019-12-03 19:42:25 +01:00
parent 83264b5973
commit 07ce718e3c

View File

@ -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())
}