mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-18 03:47:17 +02:00
delete contacts from a background thread
This commit is contained in:
parent
2dc2fe01df
commit
d06498eaa0
@ -1528,8 +1528,10 @@ class ContactsHelper(val context: Context) {
|
|||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
if (deleteClones) {
|
if (deleteClones) {
|
||||||
getDuplicatesOfContact(originalContact, true) { contacts ->
|
getDuplicatesOfContact(originalContact, true) { contacts ->
|
||||||
if (deleteContacts(contacts)) {
|
ensureBackgroundThread {
|
||||||
callback(true)
|
if (deleteContacts(contacts)) {
|
||||||
|
callback(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user