From 6e1352e3c944e80446225836547c0ce4798a86cf Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Tue, 6 Nov 2012 17:33:31 -0800 Subject: [PATCH] Naive syncing of list order is working --- .../com/todoroo/astrid/actfm/sync/ActFmSyncService.java | 5 +++++ .../com/todoroo/astrid/subtasks/SubtasksTagListFragment.java | 5 +++++ 2 files changed, 10 insertions(+) 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 c048a2f0d..85795765e 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -619,6 +619,11 @@ public final class ActFmSyncService { params.add(silenced ? "1" : "0"); } + if (values.containsKey(TagData.TAG_ORDERING.name)) { + params.add("order"); + params.add(SubtasksHelper.convertTreeToRemoteIds(tagData.getValue(TagData.TAG_ORDERING))); + } + if(params.size() == 0 || !checkForToken()) return; diff --git a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java index 81d585a09..adfef3ffc 100644 --- a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksTagListFragment.java @@ -79,4 +79,9 @@ public class SubtasksTagListFragment extends TagViewFragment { return helper.createTaskAdapter(cursor, sqlQueryTemplate); } + @Override + protected void refresh() { + setUpTaskList(); + } + }