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

Commit 9e229725 authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Android (Google) Code Review
Browse files

Merge "Fix IndexOutOfBoundsException when calling dispatchProvideStructure()" into sc-dev

parents 83a5e6ed a9ddb1e0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3581,7 +3581,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
        }

        structure.setChildCount(childrenCount);
        ArrayList<View> preorderedList = buildOrderedChildList();
        ArrayList<View> tempPreorderedList = buildOrderedChildList();
        ArrayList<View> preorderedList =
                tempPreorderedList != null ? new ArrayList<>(tempPreorderedList) : null;
        boolean customOrder = preorderedList == null
                && isChildrenDrawingOrderEnabled();
        for (int i = 0; i < childrenCount; i++) {