forked from github/szkolny
[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.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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user