mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
hide SMS and Call actions when no number is available
This commit is contained in:
@ -62,6 +62,8 @@ class ContactActivity : SimpleActivity() {
|
||||
setupEditContact()
|
||||
}
|
||||
|
||||
contact_send_sms.beVisibleIf(contact!!.number.isNotEmpty())
|
||||
contact_start_call.beVisibleIf(contact!!.number.isNotEmpty())
|
||||
contact_send_email.beVisibleIf(contact!!.email.isNotEmpty())
|
||||
|
||||
contact_photo.background = ColorDrawable(config.primaryColor)
|
||||
|
Reference in New Issue
Block a user