From df7d173aae637ba72f1bb86ae05be254df7f0745 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 13 Aug 2012 17:50:39 -0700 Subject: [PATCH] Send logged in status for the update message --- .../src/com/todoroo/astrid/service/UpdateMessageService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java b/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java index ac115e8cf..bee822b00 100644 --- a/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java +++ b/astrid/src/com/todoroo/astrid/service/UpdateMessageService.java @@ -31,6 +31,7 @@ import com.todoroo.andlib.service.RestClient; import com.todoroo.andlib.sql.Query; import com.todoroo.andlib.utility.AndroidUtilities; import com.todoroo.andlib.utility.DialogUtilities; +import com.todoroo.astrid.actfm.sync.ActFmPreferenceService; import com.todoroo.astrid.dao.StoreObjectDao; import com.todoroo.astrid.dao.StoreObjectDao.StoreObjectCriteria; import com.todoroo.astrid.data.StoreObject; @@ -55,6 +56,7 @@ public class UpdateMessageService { @Autowired protected RestClient restClient; @Autowired private GtasksPreferenceService gtasksPreferenceService; + @Autowired private ActFmPreferenceService actFmPreferenceService; @Autowired private AddOnService addOnService; @Autowired private StoreObjectDao storeObjectDao; @@ -197,7 +199,8 @@ public class UpdateMessageService { int versionCode = pi.versionCode; String result = restClient.get(URL + "?version=" + versionCode + "&" + "language=" + Locale.getDefault().getISO3Language() + "&" + - "market=" + Constants.MARKET_STRATEGY.strategyId()); //$NON-NLS-1$ + "market=" + Constants.MARKET_STRATEGY.strategyId() + "&" + + "actfm=" + (actFmPreferenceService.isLoggedIn() ? "1" : "0")); //$NON-NLS-1$ if(TextUtils.isEmpty(result)) return null;