From 9c5eff5368ffa1788f89eff177292c794a47f84a Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 29 Mar 2013 15:38:44 -0700 Subject: [PATCH] Don't ever write false has_more values in fetch history when modified_after > 0 --- .../com/todoroo/astrid/actfm/sync/messages/FetchHistory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java index 7f3f80d8b..ff34dafb5 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/FetchHistory.java @@ -136,7 +136,8 @@ public class FetchHistory { try { template = dao.getModelClass().newInstance(); template.setValue(historyTimeProperty, time); - template.setValue(historyHasMoreProperty, hasMore ? 1 : 0); + if (modifiedAfter == 0 || hasMore) + template.setValue(historyHasMoreProperty, hasMore ? 1 : 0); dao.update(RemoteModel.UUID_PROPERTY.eq(uuid), template); } catch (InstantiationException e) { Log.e(ERROR_TAG, "Error instantiating model for recording time", e);