From 65818d713d455c55262e2dc004bce97332a1b033 Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Sun, 24 Feb 2013 20:17:07 +0100 Subject: [PATCH] fixed bug collapse current open View after changing the cursor of a list the recently closed view gets recreated with an open expandable. The open item was still saved. --- .../library/AbstractSlideExpandableListAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/src/com/tjerkw/slideexpandable/library/AbstractSlideExpandableListAdapter.java b/library/src/com/tjerkw/slideexpandable/library/AbstractSlideExpandableListAdapter.java index b209598..c105e64 100644 --- a/library/src/com/tjerkw/slideexpandable/library/AbstractSlideExpandableListAdapter.java +++ b/library/src/com/tjerkw/slideexpandable/library/AbstractSlideExpandableListAdapter.java @@ -199,6 +199,8 @@ public void animateCollapse() { if(lastOpen != null){ animateView(lastOpen, ExpandCollapseAnimation.COLLAPSE); lastOpenPosition = -1; + viewHeights.clear(); + openItems.clear(); } } } \ No newline at end of file