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

Commit 1e95b895 authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Automerger Merge Worker
Browse files

Merge "Fix IndexOutOfBoundsException when calling dispatchProvideStructure()"...

Merge "Fix IndexOutOfBoundsException when calling dispatchProvideStructure()" into sc-dev am: 9e229725

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14442225

Change-Id: Ic995e087260e8ac618c10d2e8fddca593b4f8a74
parents 8563988b 9e229725
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++) {