fixed iOS widget layout
This commit is contained in:
1 parent
d8a5ccfe80
commit
58fb843f3d
4 files changed
+80
-30
No files matched your search
+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