mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-01 19:22:11 -05: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()
|
||||
}
|
||||
}
|
||||
activity.contentResolver.applyBatch(ContactsContract.AUTHORITY, operations)
|
||||
|
||||
try {
|
||||
activity.contentResolver.applyBatch(ContactsContract.AUTHORITY, operations)
|
||||
} catch (e: Exception) {
|
||||
activity.showErrorToast(e)
|
||||
}
|
||||
}
|
||||
|
||||
fun removeContactsFromGroup(contacts: ArrayList<Contact>, groupId: Long) {
|
||||
|
||||
Reference in New Issue
Block a user