Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5215ff49 authored by Ryan Mitchell's avatar Ryan Mitchell Committed by Automerger Merge Worker
Browse files

Merge "Fix forgetAllPackageInfos OutOfBoundsException" into sc-dev am: 65877abd

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13583048

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I90815dd699a34754abe2bb2f5cc25b3686705197
parents f09bce47 65877abd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1341,7 +1341,9 @@ public final class OverlayManagerService extends SystemService {
        }

        public void forgetAllPackageInfos(final int userId) {
            for (int i = 0, n = mCache.size(); i < n; i++) {
            // Iterate in reverse order since removing the package in all users will remove the
            // package from the cache.
            for (int i = mCache.size() - 1; i >= 0; i--) {
                removePackageUser(mCache.valueAt(i), userId);
            }
        }