diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java index 0d94c53df..cbce2a733 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java @@ -4,7 +4,6 @@ import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.atomic.AtomicReference; import org.apache.http.entity.mime.MultipartEntity; import org.apache.http.entity.mime.content.FileBody; @@ -111,7 +110,6 @@ public class ChangesHappened valueRef = new AtomicReference(); for (OE change : changes) { try { String localColumn = change.getValue(OutstandingEntry.COLUMN_STRING_PROPERTY); @@ -150,12 +148,9 @@ public class ChangesHappened property, AtomicReference valueRef) { + private boolean validateValue(Property property, Object value) { if (Task.TITLE.equals(property)) { - if (!(valueRef.get() instanceof String) || TextUtils.isEmpty((String) valueRef.get())) + if (!(value instanceof String) || TextUtils.isEmpty((String) value)) return false; - } else if (Task.RECURRENCE.equals(property)) { - if (";FROM=COMPLETION".equals(valueRef.get())) - valueRef.set(""); } return true; }