mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-03 01:07:37 +01:00
do not invoke SMS or Email sending intent if no contacts are in the group
This commit is contained in:
parent
9cd7c47ace
commit
5e844fe8f0
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user