summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2021-02-16 08:34:07 -0800
committerRyan Mitchell <rtmitchell@google.com>2021-02-16 08:34:07 -0800
commit6f24df4ab898d0175e9661a2bf32a66210b78119 (patch)
treead824c30dccaa3b251b500662a988a9fc938f922 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd145f376ca970dac89559f19df6da8d0ec24741e (diff)
Fix forgetAllPackageInfos OutOfBoundsException
Removing a package in all users results the AndroidPackage being removed from the cache. This decreases the size of the cache and leads to ArrayIndexOutOfBoundsException since we were iterating using the former size of the cache as the upper bound. Iterating in reverse order will allow for items to be removed from the back while iterating. Bug: 180157891 Test: create user and remove user Change-Id: Ic1bc66cec76e0342144a0629eaee2f7401ec5b16
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions