delete contacts from a background thread
This commit is contained in:
parent
2dc2fe01df
commit
d06498eaa0
1 changed files with 4 additions and 2 deletions
|
@ -1528,8 +1528,10 @@ class ContactsHelper(val context: Context) {
|
|||
ensureBackgroundThread {
|
||||
if (deleteClones) {
|
||||
getDuplicatesOfContact(originalContact, true) { contacts ->
|
||||
if (deleteContacts(contacts)) {
|
||||
callback(true)
|
||||
ensureBackgroundThread {
|
||||
if (deleteContacts(contacts)) {
|
||||
callback(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue