mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-03-04 02:57:46 +01:00
hide the Select All and Share menu buttons at dialpad
This commit is contained in:
parent
8ae60448f4
commit
980368addd
@ -63,6 +63,8 @@ class ContactsAdapter(activity: SimpleActivity, var contactItems: ArrayList<Cont
|
||||
findItem(R.id.cab_send_sms_to_contacts).isVisible = location == LOCATION_CONTACTS_TAB || location == LOCATION_FAVORITES_TAB || location == LOCATION_GROUP_CONTACTS
|
||||
findItem(R.id.cab_send_email_to_contacts).isVisible = location == LOCATION_CONTACTS_TAB || location == LOCATION_FAVORITES_TAB || location == LOCATION_GROUP_CONTACTS
|
||||
findItem(R.id.cab_delete).isVisible = location == LOCATION_CONTACTS_TAB || location == LOCATION_GROUP_CONTACTS
|
||||
findItem(R.id.cab_select_all).isVisible = location != LOCATION_DIALPAD
|
||||
findItem(R.id.cab_share).isVisible = location != LOCATION_DIALPAD
|
||||
|
||||
if (location == LOCATION_GROUP_CONTACTS) {
|
||||
findItem(R.id.cab_remove).title = activity.getString(R.string.remove_from_group)
|
||||
|
Loading…
x
Reference in New Issue
Block a user