Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d99abf4c authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Clear _DIRTY on task update

parent da7a9383
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -195,11 +195,11 @@ abstract class AndroidTask(
    protected open fun buildTask(builder: Builder, update: Boolean) {
        if (!update)
            builder .withValue(Tasks.LIST_ID, taskList.id)
                    .withValue(Tasks._DIRTY, 0)

        val task = requireNotNull(task)
        builder
                .withValue(Tasks._UID, task.uid)
                .withValue(Tasks._DIRTY, 0)
                .withValue(Tasks.SYNC_VERSION, task.sequence)
                .withValue(Tasks.TITLE, task.summary)
                .withValue(Tasks.LOCATION, task.location)