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 4890aadcd..eb5d63b33 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -77,6 +77,7 @@ import com.todoroo.astrid.service.TaskService; import com.todoroo.astrid.service.abtesting.ABTestEventReportingService; import com.todoroo.astrid.sync.SyncV2Provider.SyncExceptionHandler; import com.todoroo.astrid.tags.TagService; +import com.todoroo.astrid.tags.reusable.FeaturedListFilterExposer; import com.todoroo.astrid.utility.Flags; /** @@ -859,7 +860,7 @@ public final class ActFmSyncService { "token", token, "modified_after", serverTime); JSONArray featuredLists = result.getJSONArray("list"); if (featuredLists.length() > 0) - Preferences.setBoolean(R.string.p_show_featured_lists, true); + Preferences.setBoolean(FeaturedListFilterExposer.PREF_SHOULD_SHOW_FEATURED_LISTS, true); for (int i = 0; i < featuredLists.length(); i++) { JSONObject featObject = featuredLists.getJSONObject(i); diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncV2Provider.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncV2Provider.java index 97404f99d..6fa1d3265 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncV2Provider.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncV2Provider.java @@ -295,7 +295,7 @@ public class ActFmSyncV2Provider extends SyncV2Provider { public void run() { int time = Preferences.getInt(LAST_FEATURED_TAG_FETCH_TIME, 0); try { - if (Preferences.getBoolean(R.string.p_show_featured_lists_labs, false)) { + if (Preferences.getBoolean(R.string.p_show_featured_lists, false)) { time = actFmSyncService.fetchFeaturedLists(time); Preferences.setInt(LAST_FEATURED_TAG_FETCH_TIME, time); } diff --git a/astrid/plugin-src/com/todoroo/astrid/tags/reusable/FeaturedListFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/tags/reusable/FeaturedListFilterExposer.java index bedd759bc..a3f5b8160 100644 --- a/astrid/plugin-src/com/todoroo/astrid/tags/reusable/FeaturedListFilterExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/tags/reusable/FeaturedListFilterExposer.java @@ -31,6 +31,8 @@ import com.todoroo.astrid.tags.TagService.Tag; public class FeaturedListFilterExposer extends TagFilterExposer { + public static final String PREF_SHOULD_SHOW_FEATURED_LISTS = "show_featured_lists"; //$NON-NLS-1$ + @Override public void onReceive(Context context, Intent intent) { addUntaggedFilter = false; diff --git a/astrid/res/values/keys.xml b/astrid/res/values/keys.xml index 33896e9e6..052077d29 100644 --- a/astrid/res/values/keys.xml +++ b/astrid/res/values/keys.xml @@ -54,9 +54,6 @@ show_friends_view - - - show_featured_lists third_party_addons @@ -68,7 +65,7 @@ force_phone_layout - show_featured_lists_labs + show_featured_lists_labs account diff --git a/astrid/res/xml/preferences.xml b/astrid/res/xml/preferences.xml index c29c03aaf..deef94323 100644 --- a/astrid/res/xml/preferences.xml +++ b/astrid/res/xml/preferences.xml @@ -90,7 +90,7 @@