mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02: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