mirror of
https://github.com/etesync/android
synced 2024-11-22 07:58:09 +00:00
snap
This commit is contained in:
parent
aee9eed43c
commit
fee8237eb5
@ -194,23 +194,6 @@ class LocalGroup : AndroidGroup, LocalAddress {
|
|||||||
fileName = uid
|
fileName = uid
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Marks all members of the current group as dirty.
|
|
||||||
*/
|
|
||||||
fun markMembersDirty() {
|
|
||||||
val batch = BatchOperation(addressBook.provider!!)
|
|
||||||
|
|
||||||
for (member in getMembers())
|
|
||||||
batch.enqueue(BatchOperation.Operation(
|
|
||||||
ContentProviderOperation.newUpdate(addressBook.syncAdapterURI(ContentUris.withAppendedId(RawContacts.CONTENT_URI, member)))
|
|
||||||
.withValue(RawContacts.DIRTY, 1)
|
|
||||||
.withYieldAllowed(true)
|
|
||||||
))
|
|
||||||
|
|
||||||
batch.commit()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun resetDeleted() {
|
override fun resetDeleted() {
|
||||||
val values = ContentValues(1)
|
val values = ContentValues(1)
|
||||||
values.put(Groups.DELETED, 0)
|
values.put(Groups.DELETED, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user