Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7a3cc2e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check LayoutParam before clearing recycled state."

parents 4158f4b8 b890523f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -624,9 +624,9 @@ public class ListView extends AbsListView {

            for (int i = 0; i < count; i++) {
                final View child = infos.get(i).view;
                final LayoutParams p = (LayoutParams) child.getLayoutParams();
                if (p != null) {
                    p.recycledHeaderFooter = false;
                final ViewGroup.LayoutParams params = child.getLayoutParams();
                if (checkLayoutParams(params)) {
                    ((LayoutParams) params).recycledHeaderFooter = false;
                }
            }
        }