From 665930b8653c7136e55701453cd12e0af56dc617 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Mon, 8 Aug 2011 18:10:48 -0700 Subject: [PATCH] Fix for actfm tags getting deleted on sync --- .../com/todoroo/astrid/actfm/sync/ActFmSyncService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 270f3cd37..fd2b5a98a 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -486,8 +486,10 @@ public final class ActFmSyncService { remoteIds.add(tagObject.getLong("id")); } - Long[] remoteIdArray = remoteIds.toArray(new Long[remoteIds.size()]); - tagDataService.deleteWhere(Criterion.not(TagData.REMOTE_ID.in(remoteIdArray))); + if(serverTime == 0) { + Long[] remoteIdArray = remoteIds.toArray(new Long[remoteIds.size()]); + tagDataService.deleteWhere(Criterion.not(TagData.REMOTE_ID.in(remoteIdArray))); + } } /**