fixed iOS widget layout

This commit is contained in:
Marianum
2026-05-13 16:09:43 +02:00
parent d8a5ccfe80
commit 58fb843f3d
4 changed files with 80 additions and 30 deletions
@@ -644,7 +644,10 @@ object WidgetRenderer {
WidgetLessonStatus.TEACHER_CHANGED -> R.drawable.widget_lesson_block_teacher_changed
WidgetLessonStatus.PAST -> R.drawable.widget_lesson_block_past
WidgetLessonStatus.EVENT -> R.drawable.widget_lesson_block_event_orange
WidgetLessonStatus.ONGOING -> R.drawable.widget_lesson_block_ongoing
// ONGOING collapses into REGULAR — widgets only refresh every
// ~30min so "the current lesson" is stale most of the time and
// the visual highlight would mislead more than help.
WidgetLessonStatus.ONGOING,
WidgetLessonStatus.REGULAR -> R.drawable.widget_lesson_block_regular
}
}