[Widgets/Timetable] Fix "no lessons" and "no timetable" texts overlapping.

This commit is contained in:
Kuba Szczodrzyński 2020-03-18 12:48:04 +01:00
parent 2186da416e
commit 6866dd4801

View File

@ -264,7 +264,7 @@ class WidgetTimetableProvider : AppWidgetProvider() {
views.setViewVisibility(R.id.widgetTimetableListView, View.GONE)
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.widgetTimetableNoLessons, View.VISIBLE)
}