mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-03 04:01:56 -05:00
do not invoke SMS or Email sending intent if no contacts are in the group
This commit is contained in:
@@ -116,11 +116,19 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
|
||||
}
|
||||
|
||||
private fun sendSMSToGroup() {
|
||||
sendSMSToContacts(groupContacts)
|
||||
if (groupContacts.isEmpty()) {
|
||||
toast(R.string.no_contacts_found)
|
||||
} else {
|
||||
sendSMSToContacts(groupContacts)
|
||||
}
|
||||
}
|
||||
|
||||
private fun sendEmailToGroup() {
|
||||
sendEmailToContacts(groupContacts)
|
||||
if (groupContacts.isEmpty()) {
|
||||
toast(R.string.no_contacts_found)
|
||||
} else {
|
||||
sendEmailToContacts(groupContacts)
|
||||
}
|
||||
}
|
||||
|
||||
private fun assignRingtoneToGroup() {
|
||||
|
||||
Reference in New Issue
Block a user