Don't create new deleted tasks on gtasks

pull/14/head
Sam Bosley 13 years ago
parent 54d0390dd8
commit 9ae4b81acf

@ -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;
}

Loading…
Cancel
Save