From 9ae4b81acf26c8b9d62a4d5e3575b938bd5b0336 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 26 Mar 2012 17:40:12 -0700 Subject: [PATCH] Don't create new deleted tasks on gtasks --- .../com/todoroo/astrid/gtasks/sync/GtasksSyncService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java index 4e1f16923..c86b04858 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncService.java @@ -190,9 +190,10 @@ public final class GtasksSyncService { } //If task was newly created but without a title, don't sync--we're in the middle of - //creating a task which may end up being cancelled + //creating a task which may end up being cancelled. Also don't sync new but already + //deleted tasks if (newlyCreated && - (!values.containsKey(Task.TITLE.name) || TextUtils.isEmpty(task.getValue(Task.TITLE)))) { + (!values.containsKey(Task.TITLE.name) || TextUtils.isEmpty(task.getValue(Task.TITLE)) || task.getValue(Task.DELETION_DATE) > 0)) { return; }