diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java index d376054a7..270f3cd37 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -94,6 +94,8 @@ public final class ActFmSyncService { final ContentValues setValues = model.getSetValues(); if(setValues == null || !checkForToken() || setValues.containsKey(RemoteModel.REMOTE_ID_PROPERTY_NAME)) return; + if(completedRepeatingTask(model)) + return; new Thread(new Runnable() { @Override @@ -104,6 +106,10 @@ public final class ActFmSyncService { } }).start(); } + + private boolean completedRepeatingTask(Task model) { + return !TextUtils.isEmpty(model.getValue(Task.RECURRENCE)) && model.isCompleted(); + } }); updateDao.addListener(new ModelUpdateListener() {