forked from github/szkolny
hide classroom heading when no classroom is specified
This commit is contained in:
parent
8d0b5b8fc7
commit
29fd96acb4
@ -261,9 +261,11 @@ class HomeTimetableCard(
|
||||
R.string.home_timetable_lesson_not_started
|
||||
b.lessonBig.setText(lessonRes, firstLesson.subjectSpannable)
|
||||
firstLesson?.displayClassroom?.let {
|
||||
b.classroomHeading.visibility = View.VISIBLE
|
||||
b.classroom.visibility = View.VISIBLE
|
||||
b.classroom.text = it
|
||||
} ?: run {
|
||||
b.classroomHeading.visibility = View.GONE
|
||||
b.classroom.visibility = View.GONE
|
||||
}
|
||||
|
||||
@ -305,9 +307,11 @@ class HomeTimetableCard(
|
||||
b.counter.visibility = View.VISIBLE
|
||||
b.counter.text = firstLesson?.displayStartTime?.stringHM
|
||||
firstLesson?.displayClassroom?.let {
|
||||
b.classroomHeading.visibility = View.VISIBLE
|
||||
b.classroom.visibility = View.VISIBLE
|
||||
b.classroom.text = it
|
||||
} ?: run {
|
||||
b.classroomHeading.visibility = View.GONE
|
||||
b.classroom.visibility = View.GONE
|
||||
}
|
||||
|
||||
|
@ -243,11 +243,13 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/classroomHeading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Sala"
|
||||
android:textAppearance="@style/NavView.TextView.BodyMedium"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
android:textColor="?colorPrimary" />
|
||||
|
||||
<TextView
|
||||
|
Loading…
x
Reference in New Issue
Block a user