aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabrielemariotti <gabri.mariotti@gmail.com>2014-03-07 14:23:27 +0100
committerLars Greiss <kufikugel@googlemail.com>2014-04-10 23:24:39 +0200
commit8b5ced821c7dc6001c276de6523eb7224831106e (patch)
tree7552b8495f2cdaec6ab4ff599781a8c7ffb5a6b3
parent7217cf4325fde82e78703e0c9aff49397a190349 (diff)
#Fixed #104
-rw-r--r--src/com/android/cards/internal/CardCursorAdapter.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/com/android/cards/internal/CardCursorAdapter.java b/src/com/android/cards/internal/CardCursorAdapter.java
index 2e1ec52..1ec50ec 100644
--- a/src/com/android/cards/internal/CardCursorAdapter.java
+++ b/src/com/android/cards/internal/CardCursorAdapter.java
@@ -27,9 +27,7 @@ import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.HashMap;
-import java.util.HashSet;
import java.util.List;
-import java.util.Set;
import com.android.cards.R;
import com.android.cards.internal.base.BaseCardCursorAdapter;
@@ -204,20 +202,6 @@ public abstract class CardCursorAdapter extends BaseCardCursorAdapter {
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