setup organization data at Edit

This commit is contained in:
tibbi 2018-04-07 16:17:25 +02:00
parent cb2e491f65
commit 30a3249159
1 changed files with 7 additions and 0 deletions

View File

@ -176,6 +176,7 @@ class EditContactActivity : ContactActivity() {
contact_notes_image.applyColorFilter(textColor)
contact_source_image.applyColorFilter(textColor)
contact_groups_image.applyColorFilter(textColor)
contact_organization_image.applyColorFilter(textColor)
val adjustedPrimaryColor = getAdjustedPrimaryColor()
contact_number_add_new.applyColorFilter(adjustedPrimaryColor)
@ -250,6 +251,7 @@ class EditContactActivity : ContactActivity() {
setupEmails()
setupAddresses()
setupNotes()
setupOrganization()
setupEvents()
setupGroups()
}
@ -303,6 +305,11 @@ class EditContactActivity : ContactActivity() {
contact_notes.setText(contact!!.notes)
}
private fun setupOrganization() {
contact_organization_company.setText(contact!!.organization.company)
contact_organization_job_position.setText(contact!!.organization.jobPosition)
}
private fun setupEvents() {
contact!!.events.forEachIndexed { index, event ->
var eventHolder = contact_events_holder.getChildAt(index)