From 37376d5842e347cc7b4d56065f4e39133cc86a3a Mon Sep 17 00:00:00 2001 From: Tim Su Date: Sat, 11 Dec 2010 16:07:10 -0800 Subject: [PATCH] Default control set should be the user's default workspace --- .../com/todoroo/astrid/producteev/ProducteevControlSet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevControlSet.java b/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevControlSet.java index 6f5f2ea2a..add37dbec 100644 --- a/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevControlSet.java +++ b/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevControlSet.java @@ -24,6 +24,7 @@ import com.todoroo.andlib.service.Autowired; import com.todoroo.andlib.service.DependencyInjectionService; import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.andlib.utility.DialogUtilities; +import com.todoroo.andlib.utility.Preferences; import com.todoroo.astrid.activity.TaskEditActivity.TaskEditControlSet; import com.todoroo.astrid.data.Metadata; import com.todoroo.astrid.data.StoreObject; @@ -34,7 +35,6 @@ import com.todoroo.astrid.producteev.sync.ProducteevSyncProvider; import com.todoroo.astrid.producteev.sync.ProducteevTask; import com.todoroo.astrid.producteev.sync.ProducteevUser; import com.todoroo.astrid.service.MetadataService; -import com.todoroo.andlib.utility.Preferences; /** * Control Set for managing task/dashboard assignments in Producteev @@ -203,7 +203,7 @@ public class ProducteevControlSet implements TaskEditControlSet { metadata = ProducteevTask.newMetadata(); // Fill the dashboard-spinner and set the current dashboard - long dashboardId = -1; + long dashboardId = ProducteevUtilities.INSTANCE.getDefaultDashboard(); if(metadata.containsNonNullValue(ProducteevTask.DASHBOARD_ID)) dashboardId = metadata.getValue(ProducteevTask.DASHBOARD_ID); @@ -224,7 +224,7 @@ public class ProducteevControlSet implements TaskEditControlSet { //dashboard to not sync as first spinner-entry dashboards.add(0, new ProducteevDashboard(ProducteevUtilities.DASHBOARD_NO_SYNC, activity.getString(R.string.producteev_no_dashboard),null)); - // dummyentry for adding a new dashboard + // dummy entry for adding a new dashboard dashboards.add(new ProducteevDashboard(ProducteevUtilities.DASHBOARD_CREATE, activity.getString(R.string.producteev_create_dashboard),null)); ArrayAdapter dashAdapter = new ArrayAdapter(activity,