From 30eddc993934d3829a32b56d3c9ad8a165af7c28 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 20 Mar 2013 14:03:11 -0700 Subject: [PATCH] Pass error list into sync callbacks --- .../com/todoroo/astrid/actfm/sync/ActFmSyncThread.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java index f63d7b649..e5d1d9d8a 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java @@ -389,7 +389,12 @@ public class ActFmSyncThread { try { SyncMessageCallback r = pendingCallbacks.remove(message); if (r != null && !callbacksExecutedThisLoop.contains(r)) { - r.runOnSuccess(); + List errorList = errorMap.get(i); + if (errorList == null || errorList.isEmpty()) + r.runOnSuccess(); + else + r.runOnErrors(errorList); + callbacksExecutedThisLoop.add(r); } } catch (Exception e) {