diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java index a5648612f..acf330155 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/MakeChanges.java @@ -32,8 +32,10 @@ import com.todoroo.astrid.data.RemoteModel; import com.todoroo.astrid.data.SyncFlags; import com.todoroo.astrid.data.TagData; import com.todoroo.astrid.data.TagMetadata; +import com.todoroo.astrid.data.Task; import com.todoroo.astrid.data.TaskListMetadata; import com.todoroo.astrid.data.UserActivity; +import com.todoroo.astrid.reminders.ReminderService; import com.todoroo.astrid.service.MetadataService; import com.todoroo.astrid.tags.TagService; import com.todoroo.astrid.tags.TaskToTagMetadata; @@ -231,6 +233,12 @@ public class MakeChanges extends ServerToClientMessage uuidChanged(oldUuid, uuid); } + if (changes.has(NameMaps.localPropertyToServerColumnName(NameMaps.TABLE_ID_TASKS, Task.DUE_DATE))) { + Task t = PluginServices.getTaskDao().fetch(uuid, Task.PROPERTIES); + if (t != null) + ReminderService.getInstance().scheduleAlarm(t); + } + JSONArray addTags = changes.optJSONArray("tag_added"); JSONArray removeTags = changes.optJSONArray("tag_removed"); boolean tagsAdded = (addTags != null && addTags.length() > 0);