mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
display contact organization on the View Details screen
This commit is contained in:
@ -123,6 +123,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
contact_event_image.applyColorFilter(textColor)
|
||||
contact_source_image.applyColorFilter(textColor)
|
||||
contact_notes_image.applyColorFilter(textColor)
|
||||
contact_organization_image.applyColorFilter(textColor)
|
||||
contact_groups_image.applyColorFilter(textColor)
|
||||
|
||||
contact_send_sms.setOnClickListener { trySendSMS() }
|
||||
@ -164,6 +165,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
setupAddresses()
|
||||
setupEvents()
|
||||
setupNotes()
|
||||
setupOrganization()
|
||||
setupGroups()
|
||||
}
|
||||
|
||||
@ -251,6 +253,13 @@ class ViewContactActivity : ContactActivity() {
|
||||
contact_notes.beVisibleIf(notes.isNotEmpty())
|
||||
}
|
||||
|
||||
private fun setupOrganization() {
|
||||
val organization = contact!!.organization
|
||||
contact_organization.text = organization
|
||||
contact_organization_image.beVisibleIf(organization.isNotEmpty())
|
||||
contact_organization.beVisibleIf(organization.isNotEmpty())
|
||||
}
|
||||
|
||||
private fun setupGroups() {
|
||||
contact_groups_holder.removeAllViews()
|
||||
val groups = contact!!.groups
|
||||
|
Reference in New Issue
Block a user