Make BrowseAnimationFragment working

Change-Id: Id239c1910783bb70cbffcba71a5832a15db58e39
This commit is contained in:
Dake Gu
2014-08-18 16:14:50 -07:00
parent a38b253ebb
commit f2204d4af7

View File

@@ -93,7 +93,7 @@ public class BrowseAnimationFragment extends
int index = adapter.indexOf(item);
if (index >= 0) {
if (index > 0)
index = 0;
index--;
adapter.removeItems(index, 1);
}
}
@@ -247,7 +247,7 @@ public class BrowseAnimationFragment extends
ListRow createRandomRow(HeaderItem header) {
ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(
new CardPresenter());
new StringPresenter());
for (int i = 0; i < 8; i++) {
listRowAdapter.add(createRandomItem());
}