Merge "Use newest scrap view in ListView" into oc-dev

am: ecc0e16e32

Change-Id: I20da3472569c1882f88a56b0e4fd720f75396f7d
This commit is contained in:
Phil Weaver
2017-05-01 18:40:43 +00:00
committed by android-build-merger

View File

@@ -7088,7 +7088,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
final int size = scrapViews.size();
if (size > 0) {
// See if we still have a view for this position or ID.
for (int i = 0; i < size; i++) {
// Traverse backwards to find the most recently used scrap view
for (int i = size - 1; i >= 0; i--) {
final View view = scrapViews.get(i);
final AbsListView.LayoutParams params =
(AbsListView.LayoutParams) view.getLayoutParams();