mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-19 11:47:04 -06:00
Replace dash mark with no data string in SchoolFragment (#1203)
This commit is contained in:
parent
50863d6ac2
commit
acb5e2afd4
@ -53,13 +53,14 @@ class SchoolFragment : BaseFragment<FragmentSchoolBinding>(R.layout.fragment_sch
|
||||
|
||||
override fun updateData(data: School) {
|
||||
with(binding) {
|
||||
schoolName.text = data.name
|
||||
schoolAddress.text = data.address.ifBlank { "-" }
|
||||
val noDataString = getString(R.string.all_no_data)
|
||||
schoolName.text = data.name.ifBlank { noDataString }
|
||||
schoolAddress.text = data.address.ifBlank { noDataString }
|
||||
schoolAddressButton.visibility = if (data.address.isNotBlank()) VISIBLE else GONE
|
||||
schoolTelephone.text = data.contact.ifBlank { "-" }
|
||||
schoolTelephone.text = data.contact.ifBlank { noDataString }
|
||||
schoolTelephoneButton.visibility = if (data.contact.isNotBlank()) VISIBLE else GONE
|
||||
schoolHeadmaster.text = data.headmaster
|
||||
schoolPedagogue.text = data.pedagogue
|
||||
schoolHeadmaster.text = data.headmaster.ifBlank { noDataString }
|
||||
schoolPedagogue.text = data.pedagogue.ifBlank { noDataString }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user