diff options
author | Joanne Chung <joannechung@google.com> | 2021-05-06 15:15:38 +0800 |
---|---|---|
committer | Joanne Chung <joannechung@google.com> | 2021-05-06 17:06:33 +0000 |
commit | a9ddb1e0daf3f55596ae8838a75c3524a9630aaf (patch) | |
tree | 578f20ddce80db82273d94ab99db045a9ba5104a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ee156a8c47d15330fb21e189d3896f492bee1ed1 (diff) |
Fix IndexOutOfBoundsException when calling dispatchProvideStructure()
dispatchProvideStructure() will get preorderedList by buildOrderedChildList().
buildOrderedChildList() returns mPreSortedChildren directly. During
the traversal, the mPreSortedChildren is changed by the
View#populateAccessibilityNodeInfoDrawingOrderInParent(). When one of
child traversal is done, the preorderedList is already changed, the
IndexOutOfBoundsException will occurr when trying to travese the next
child.
To fix it, try to make a copy not directly refer to mPreSortedChildren.
Bug: 185971133
Test: manual. App doesn't crash
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ie077948dd45426c1204d153ca0a921c7c67351d8
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions