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

Tasks: implement update as dirty.

This commit is contained in:
Tom Hacohen 2019-07-06 10:03:18 +01:00
parent 101e7e2559
commit cc83e2c5d9

View File

@ -84,6 +84,11 @@ class LocalTask : AndroidTask, LocalResource<Task> {
.withValue(COLUMN_ETAG, eTag)
}
fun updateAsDirty(task: Task): Uri {
saveAsDirty = true
return this.update(task)
}
fun addAsDirty(): Uri {
saveAsDirty = true
return this.add()