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

Commit 6cf5dee4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Synchronize when updating listeners during uninstall" into main

parents 1f37f497 fcb944ef
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ public class OneTimePermissionUserManager {
        public void onReceive(Context context, Intent intent) {
            if (Intent.ACTION_UID_REMOVED.equals(intent.getAction())) {
                int uid = intent.getIntExtra(Intent.EXTRA_UID, -1);
                synchronized (mLock) {
                    PackageInactivityListener listener = mListeners.get(uid);
                    if (listener != null) {
                        if (DEBUG) {
@@ -74,6 +75,7 @@ public class OneTimePermissionUserManager {
                    }
               }
            }
        }
    };

    /** Maps the uid to the PackageInactivityListener */