OSDN Git Service

Don't autogrant permissions on managed profiles
[android-x86/frameworks-base.git] / services / core / java / com / android / server / notification / ManagedServices.java
index d5d0250..34f1bfa 100644 (file)
@@ -455,6 +455,11 @@ abstract public class ManagedServices {
         }
     }
 
+    public void onUserRemoved(int user) {
+        mApproved.remove(user);
+        rebindServices(true);
+    }
+
     public void onUserSwitched(int user) {
         if (DEBUG) Slog.d(TAG, "onUserSwitched u=" + user);
         if (Arrays.equals(mLastSeenProfileIds, mUserProfiles.getCurrentProfileIds())) {