From cc83e2c5d9315fefc618c2fe686bd26bcf4373df Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 6 Jul 2019 10:03:18 +0100 Subject: [PATCH] Tasks: implement update as dirty. --- .../main/java/com/etesync/syncadapter/resource/LocalTask.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/etesync/syncadapter/resource/LocalTask.kt b/app/src/main/java/com/etesync/syncadapter/resource/LocalTask.kt index 614fc54a..9588a29d 100644 --- a/app/src/main/java/com/etesync/syncadapter/resource/LocalTask.kt +++ b/app/src/main/java/com/etesync/syncadapter/resource/LocalTask.kt @@ -84,6 +84,11 @@ class LocalTask : AndroidTask, LocalResource { .withValue(COLUMN_ETAG, eTag) } + fun updateAsDirty(task: Task): Uri { + saveAsDirty = true + return this.update(task) + } + fun addAsDirty(): Uri { saveAsDirty = true return this.add()