Merge "Fix IndexOutOfBoundsException when calling dispatchProvideStructure()" into sc-dev
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user