From 415b95d0c23c7f490b042ca36913aae33ec0ff22 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 2 May 2012 23:26:13 -0700 Subject: [PATCH] Fixed a bug with constructing widget edit intent --- .../src/com/todoroo/astrid/widget/TasksWidget.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/widget/TasksWidget.java b/astrid/src/com/todoroo/astrid/widget/TasksWidget.java index 4410fdf6a..ecef11320 100644 --- a/astrid/src/com/todoroo/astrid/widget/TasksWidget.java +++ b/astrid/src/com/todoroo/astrid/widget/TasksWidget.java @@ -250,13 +250,13 @@ public class TasksWidget extends AppWidgetProvider { editIntent.putExtra(TaskEditFragment.OVERRIDE_FINISH_ANIM, false); if(filter != null) { editIntent.putExtra(TaskListFragment.TOKEN_FILTER, filter); + if (filter.valuesForNewTasks != null) { + String values = AndroidUtilities.contentValuesToSerializedString(filter.valuesForNewTasks); + values = PermaSql.replacePlaceholders(values); + editIntent.putExtra(TaskEditFragment.TOKEN_VALUES, values); + editIntent.setAction("E" + widgetId + values); + } if (tablet) { - if (filter.valuesForNewTasks != null) { - String values = AndroidUtilities.contentValuesToSerializedString(filter.valuesForNewTasks); - values = PermaSql.replacePlaceholders(values); - editIntent.putExtra(TaskEditFragment.TOKEN_VALUES, values); - editIntent.setAction("E" + widgetId + values); - } if (filter instanceof FilterWithCustomIntent) { Bundle customExtras = ((FilterWithCustomIntent) filter).customExtras; editIntent.putExtras(customExtras);