OSDN Git Service

Fix the build when ViewDebug.TRACE_RECYCLER is set to true.
authorRomain Guy <romainguy@android.com>
Wed, 9 Dec 2009 01:33:53 +0000 (17:33 -0800)
committerRomain Guy <romainguy@android.com>
Wed, 9 Dec 2009 01:33:53 +0000 (17:33 -0800)
core/java/android/widget/ListView.java

index 7c8151e..b574d45 100644 (file)
@@ -1374,7 +1374,7 @@ public class ListView extends AbsListView {
             int childrenBottom = mBottom - mTop - mListPadding.bottom;
 
             int childCount = getChildCount();
-            int index;
+            int index = 0;
             int delta = 0;
 
             View sel;