From 4f7817434162df85314076b8449941ec36779585 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 13 Jan 2012 12:22:44 -0800 Subject: [PATCH] Fixed a bug with using arrayAdapter.addAll --- astrid/src/com/todoroo/astrid/adapter/FilterAdapter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astrid/src/com/todoroo/astrid/adapter/FilterAdapter.java b/astrid/src/com/todoroo/astrid/adapter/FilterAdapter.java index 4c4842ce3..e4402dc81 100644 --- a/astrid/src/com/todoroo/astrid/adapter/FilterAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/FilterAdapter.java @@ -361,7 +361,10 @@ public class FilterAdapter extends BaseExpandableListAdapter { onReceiveFilter((FilterListItem)item); if (filter instanceof FilterCategory) { - arrayAdapter.addAll(((FilterCategory) filter).children); + Filter[] children = ((FilterCategory) filter).children; + for (Filter f : children) { + arrayAdapter.add(f); + } } else { arrayAdapter.add(filter); }