mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show the contact notes at the View screen
This commit is contained in:
@ -113,6 +113,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
contact_email_image.applyColorFilter(textColor)
|
||||
contact_event_image.applyColorFilter(textColor)
|
||||
contact_source_image.applyColorFilter(textColor)
|
||||
contact_notes_image.applyColorFilter(textColor)
|
||||
|
||||
contact_send_sms.setOnClickListener { trySendSMS() }
|
||||
contact_start_call.setOnClickListener { tryStartCall(contact!!) }
|
||||
@ -152,6 +153,7 @@ class ViewContactActivity : ContactActivity() {
|
||||
setupEmails()
|
||||
setupAddresses()
|
||||
setupEvents()
|
||||
setupNotes()
|
||||
}
|
||||
|
||||
private fun setupPhoneNumbers() {
|
||||
@ -216,5 +218,12 @@ class ViewContactActivity : ContactActivity() {
|
||||
contact_events_holder.beVisibleIf(events.isNotEmpty())
|
||||
}
|
||||
|
||||
private fun setupNotes() {
|
||||
val notes = contact!!.notes
|
||||
contact_notes.text = notes
|
||||
contact_notes_image.beVisibleIf(notes.isNotEmpty())
|
||||
contact_notes.beVisibleIf(notes.isNotEmpty())
|
||||
}
|
||||
|
||||
private fun getStarDrawable(on: Boolean) = resources.getDrawable(if (on) R.drawable.ic_star_on_big else R.drawable.ic_star_off_big)
|
||||
}
|
||||
|
Reference in New Issue
Block a user