mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
adding some contentdescriptions and long press explanations
This commit is contained in:
@ -238,11 +238,14 @@ class EditContactActivity : ContactActivity() {
|
||||
contact_groups_add_new.setOnClickListener { showSelectGroupsDialog() }
|
||||
contact_source.setOnClickListener { showSelectContactSourceDialog() }
|
||||
|
||||
contact_change_photo.setOnLongClickListener { toast(R.string.change_photo); true; }
|
||||
|
||||
setupFieldVisibility()
|
||||
|
||||
contact_toggle_favorite.apply {
|
||||
setImageDrawable(getStarDrawable(contact!!.starred == 1))
|
||||
tag = contact!!.starred
|
||||
setOnLongClickListener { toast(R.string.toggle_favorite); true; }
|
||||
}
|
||||
|
||||
updateTextColors(contact_scrollview)
|
||||
@ -1206,6 +1209,8 @@ class EditContactActivity : ContactActivity() {
|
||||
setImageDrawable(getStarDrawable(!isStarred))
|
||||
tag = if (isStarred) 0 else 1
|
||||
applyColorFilter(config.textColor)
|
||||
|
||||
setOnLongClickListener { toast(R.string.toggle_favorite); true; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -228,6 +228,10 @@ class ViewContactActivity : ContactActivity() {
|
||||
contact_start_call.setOnClickListener { tryStartCall(contact!!) }
|
||||
contact_send_email.setOnClickListener { trySendEmail() }
|
||||
|
||||
contact_send_sms.setOnLongClickListener { toast(R.string.send_sms); true; }
|
||||
contact_start_call.setOnLongClickListener { toast(R.string.call_contact); true; }
|
||||
contact_send_email.setOnLongClickListener { toast(R.string.send_email); true; }
|
||||
|
||||
updateTextColors(contact_scrollview)
|
||||
contact_toolbar.menu.findItem(R.id.open_with).isVisible = contact?.isPrivate() == false
|
||||
}
|
||||
@ -299,6 +303,8 @@ class ViewContactActivity : ContactActivity() {
|
||||
tag = contact!!.starred
|
||||
setImageDrawable(getStarDrawable(tag == 1))
|
||||
}
|
||||
|
||||
setOnLongClickListener { toast(R.string.toggle_favorite); true; }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user