Skip to content
Commit 6f24df4a authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

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
parent d145f376
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment