mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 21:06:44 -06:00
[Widgets/Timetable] Fix "no lessons" and "no timetable" texts overlapping.
This commit is contained in:
parent
2186da416e
commit
6866dd4801
@ -264,7 +264,7 @@ class WidgetTimetableProvider : AppWidgetProvider() {
|
|||||||
views.setViewVisibility(R.id.widgetTimetableListView, View.GONE)
|
views.setViewVisibility(R.id.widgetTimetableListView, View.GONE)
|
||||||
views.setViewVisibility(R.id.widgetTimetableNoTimetable, View.VISIBLE)
|
views.setViewVisibility(R.id.widgetTimetableNoTimetable, View.VISIBLE)
|
||||||
}
|
}
|
||||||
if (lessons.none { !it.isCancelled } || lessons.size == 1 && lessons[0].type == Lesson.TYPE_NO_LESSONS) {
|
else if (lessons.none { !it.isCancelled } || lessons.size == 1 && lessons[0].type == Lesson.TYPE_NO_LESSONS) {
|
||||||
views.setViewVisibility(R.id.widgetTimetableListView, View.GONE)
|
views.setViewVisibility(R.id.widgetTimetableListView, View.GONE)
|
||||||
views.setViewVisibility(R.id.widgetTimetableNoLessons, View.VISIBLE)
|
views.setViewVisibility(R.id.widgetTimetableNoLessons, View.VISIBLE)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user