mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
catch and show exceptions thrown at saving contacts
This commit is contained in:
@ -993,7 +993,12 @@ class ContactsHelper(val activity: Activity) {
|
|||||||
operations.clear()
|
operations.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
activity.contentResolver.applyBatch(ContactsContract.AUTHORITY, operations)
|
activity.contentResolver.applyBatch(ContactsContract.AUTHORITY, operations)
|
||||||
|
} catch (e: Exception) {
|
||||||
|
activity.showErrorToast(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun removeContactsFromGroup(contacts: ArrayList<Contact>, groupId: Long) {
|
fun removeContactsFromGroup(contacts: ArrayList<Contact>, groupId: Long) {
|
||||||
|
Reference in New Issue
Block a user