summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2021-05-06 15:15:38 +0800
committerScott Lobdell <slobdell@google.com>2021-05-21 00:34:58 +0000
commit23df86f1079ca24b8b919dbb25d6e2c2b91875ad (patch)
treed16c4209add855f1b891e57989bf86459f6ceae7 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent6634e8f1924c382e2f3770cb1de8a9de097c9be6 (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 (cherry picked from commit a9ddb1e0daf3f55596ae8838a75c3524a9630aaf)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions