fixed iOS widget layout
This commit is contained in:
+4
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user