mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-25 15:47:50 +01:00
fixing a glitch at sending batch SMS messages
This commit is contained in:
parent
c893b1d9e8
commit
60d4a75170
@ -236,6 +236,7 @@ fun Context.sendSMSToContacts(contacts: ArrayList<Contact>) {
|
|||||||
if (number != null) {
|
if (number != null) {
|
||||||
numbers.append("${Uri.encode(number.value)};")
|
numbers.append("${Uri.encode(number.value)};")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
val uriString = "smsto:${numbers.toString().trimEnd(';')}"
|
val uriString = "smsto:${numbers.toString().trimEnd(';')}"
|
||||||
Intent(Intent.ACTION_SENDTO, Uri.parse(uriString)).apply {
|
Intent(Intent.ACTION_SENDTO, Uri.parse(uriString)).apply {
|
||||||
@ -246,7 +247,6 @@ fun Context.sendSMSToContacts(contacts: ArrayList<Contact>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fun Context.sendEmailToContacts(contacts: ArrayList<Contact>) {
|
fun Context.sendEmailToContacts(contacts: ArrayList<Contact>) {
|
||||||
val emails = ArrayList<String>()
|
val emails = ArrayList<String>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user