Skip to content

Commit

Permalink
#Fixed #104
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielemariotti committed Mar 7, 2014
1 parent 6053daa commit ebf757d
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -207,20 +205,6 @@ protected void setupExpandCollapseListAnimation(CardView cardView) {
cardView.setOnExpandListAnimatorListener(mCardListView);
}

@Override
public void notifyDataSetChanged() {
super.notifyDataSetChanged();

Set<String> removedIds = new HashSet<String>(mExpandedIds);

for (int i = 0; i < getCount(); ++i) {
Card card = getItem(i);
String id = card.getId();
removedIds.remove(id);
}

mExpandedIds.removeAll(removedIds);
}

// -------------------------------------------------------------
// Expanded
Expand Down

0 comments on commit ebf757d

Please sign in to comment.