Skip to content
Commit 2e074fa2 authored by Alan Stokes's avatar Alan Stokes
Browse files

Minor getPackagesForSharedUserIdLocked() fixes.

Only shrink the array at most once - clearer & more efficient.

Also make sure we don't return null, in the unlikely event we end up
with zero entries, since that's the contract of this method.

(Similar to change I62aa9d84a95a017269953e4e4f4c86e20a5a1838).

Test: atest PackageManagerTests
Change-Id: Id15e6cfd832b177e7a18a4980f3e1e79b780c4f4
parent dda7e6a9
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