OSDN Git Service

Scrapping the view at position zero is still position zero
authorAlan Viverette <alanv@google.com>
Sat, 16 Aug 2014 01:02:23 +0000 (18:02 -0700)
committerAlan Viverette <alanv@google.com>
Sat, 16 Aug 2014 01:02:23 +0000 (18:02 -0700)
BUG: 16418789
Change-Id: I8334d6b37efa1f853152ef2cea041db69e41d24e

core/java/android/widget/ListView.java

index 9db1e05..1368cd3 100644 (file)
@@ -1161,7 +1161,7 @@ public class ListView extends AbsListView {
 
             if (recycleOnMeasure() && mRecycler.shouldRecycleViewType(
                     ((LayoutParams) child.getLayoutParams()).viewType)) {
-                mRecycler.addScrapView(child, -1);
+                mRecycler.addScrapView(child, 0);
             }
         }