mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-19 14:36:47 -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) {
|
override fun updateData(data: School) {
|
||||||
with(binding) {
|
with(binding) {
|
||||||
schoolName.text = data.name
|
val noDataString = getString(R.string.all_no_data)
|
||||||
schoolAddress.text = data.address.ifBlank { "-" }
|
schoolName.text = data.name.ifBlank { noDataString }
|
||||||
|
schoolAddress.text = data.address.ifBlank { noDataString }
|
||||||
schoolAddressButton.visibility = if (data.address.isNotBlank()) VISIBLE else GONE
|
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
|
schoolTelephoneButton.visibility = if (data.contact.isNotBlank()) VISIBLE else GONE
|
||||||
schoolHeadmaster.text = data.headmaster
|
schoolHeadmaster.text = data.headmaster.ifBlank { noDataString }
|
||||||
schoolPedagogue.text = data.pedagogue
|
schoolPedagogue.text = data.pedagogue.ifBlank { noDataString }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user