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

Commit e3b07b48 authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Android Git Automerger
Browse files

am 486a9942: Merge "[ActivityManager] Use synchronized to protect object"

* commit '486a9942':
  [ActivityManager] Use synchronized to protect object
parents a1beb930 486a9942
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);
    }