From 426b95b727e26bef8f3f0401073a82cc74f517a1 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Thu, 7 Oct 2010 14:45:26 -0700 Subject: [PATCH] Fix for gtasks filters not loading the right filter --- .../com/todoroo/astrid/gtasks/GtasksFilterExposer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java index a3ebf4540..32fafa7d0 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/GtasksFilterExposer.java @@ -26,9 +26,9 @@ import com.todoroo.astrid.api.FilterListHeader; import com.todoroo.astrid.api.FilterListItem; import com.todoroo.astrid.api.FilterWithCustomIntent; import com.todoroo.astrid.data.Metadata; -import com.todoroo.astrid.data.MetadataApiDao.MetadataCriteria; import com.todoroo.astrid.data.StoreObject; import com.todoroo.astrid.data.Task; +import com.todoroo.astrid.data.MetadataApiDao.MetadataCriteria; import com.todoroo.astrid.data.TaskApiDao.TaskCriteria; /** @@ -61,6 +61,7 @@ public class GtasksFilterExposer extends BroadcastReceiver { Intent intent = new Intent(ContextManager.getContext(), GtasksListActivity.class); intent.putExtra(GtasksListActivity.TOKEN_LIST_ID, list.getValue(GtasksList.REMOTE_ID)); intent.putExtra(GtasksListActivity.TOKEN_FILTER, filter); + intent.setType(list.getValue(GtasksList.REMOTE_ID)); PendingIntent pendingIntent = PendingIntent.getActivity(ContextManager.getContext(), 0, intent, 0); filter.intent = pendingIntent;