forked from github/szkolny
[Widget] Fix showing all-day event on every lesson.
This commit is contained in:
parent
83264b5973
commit
07ce718e3c
@ -255,7 +255,7 @@ class WidgetTimetable : AppWidgetProvider() {
|
|||||||
|
|
||||||
// add every event on this lesson
|
// add every event on this lesson
|
||||||
for (event in events) {
|
for (event in events) {
|
||||||
if (event.startTime != null && event.startTime != lesson.displayStartTime)
|
if (event.startTime == null || event.startTime != lesson.displayStartTime)
|
||||||
continue
|
continue
|
||||||
model.eventColors.add(if (event.type == TYPE_HOMEWORK) ItemWidgetTimetableModel.EVENT_COLOR_HOMEWORK else event.getColor())
|
model.eventColors.add(if (event.type == TYPE_HOMEWORK) ItemWidgetTimetableModel.EVENT_COLOR_HOMEWORK else event.getColor())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user