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

Commit 486a9942 authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Gerrit Code Review
Browse files

Merge "[ActivityManager] Use synchronized to protect object"

parents e6d63b94 89764e33
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -4161,6 +4161,7 @@ public final class ActivityThread {
    final void handleDispatchPackageBroadcast(int cmd, String[] packages) {
        boolean hasPkgInfo = false;
        if (packages != null) {
            synchronized (mResourcesManager) {
                for (int i=packages.length-1; i>=0; i--) {
                    //Slog.i(TAG, "Cleaning old package: " + packages[i]);
                    if (!hasPkgInfo) {
@@ -4179,6 +4180,7 @@ public final class ActivityThread {
                    mResourcePackages.remove(packages[i]);
                }
            }
        }
        ApplicationPackageManager.handlePackageBroadcast(cmd, packages,
                hasPkgInfo);
    }