1
0
mirror of https://github.com/etesync/android synced 2025-01-11 00:01:12 +00:00

LocalGroup: implement updateAsDirty.

This commit is contained in:
Tom Hacohen 2019-07-06 10:28:42 +01:00
parent cc83e2c5d9
commit bbd40e0255

View File

@ -208,6 +208,19 @@ class LocalGroup : AndroidGroup, LocalAddress {
))
}
fun updateAsDirty(group: Contact, members: List<Long>): Uri {
saveAsDirty = true
val ret = this.update(group)
val batch = BatchOperation(addressBook.provider!!)
setMembers(batch, members)
batch.commit()
return ret
}
fun createAsDirty(members: List<Long>): Uri {
saveAsDirty = true