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 9e276e17a..46049b40a 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncThread.java @@ -240,8 +240,10 @@ public class ActFmSyncThread { }; private void incrementProgress() { - if (activity != null) { - activity.runOnUiThread(incrementProgressRunnable); + synchronized (progressBarLock) { + if (activity != null) { + activity.runOnUiThread(incrementProgressRunnable); + } } }