From ebf757d3af337fa885aee630425600c7fb4a25ac Mon Sep 17 00:00:00 2001 From: gabrielemariotti Date: Fri, 7 Mar 2014 14:23:27 +0100 Subject: [PATCH] #Fixed #104 --- .../library/internal/CardCursorAdapter.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/library/src/main/java/it/gmariotti/cardslib/library/internal/CardCursorAdapter.java b/library/src/main/java/it/gmariotti/cardslib/library/internal/CardCursorAdapter.java index efa9871f..e87d1073 100644 --- a/library/src/main/java/it/gmariotti/cardslib/library/internal/CardCursorAdapter.java +++ b/library/src/main/java/it/gmariotti/cardslib/library/internal/CardCursorAdapter.java @@ -27,9 +27,7 @@ import java.util.ArrayList; import java.util.HashMap; -import java.util.HashSet; import java.util.List; -import java.util.Set; import it.gmariotti.cardslib.library.R; import it.gmariotti.cardslib.library.internal.base.BaseCardCursorAdapter; @@ -207,20 +205,6 @@ protected void setupExpandCollapseListAnimation(CardView cardView) { cardView.setOnExpandListAnimatorListener(mCardListView); } - @Override - public void notifyDataSetChanged() { - super.notifyDataSetChanged(); - - Set removedIds = new HashSet(mExpandedIds); - - for (int i = 0; i < getCount(); ++i) { - Card card = getItem(i); - String id = card.getId(); - removedIds.remove(id); - } - - mExpandedIds.removeAll(removedIds); - } // ------------------------------------------------------------- // Expanded