diff options
author | 2016-04-06 14:27:34 +0000 | |
---|---|---|
committer | 2016-04-06 14:27:35 +0000 | |
commit | 3397c88f7900d8db677204cdbe9e7a5dc26e453a (patch) | |
tree | ca0e0aa6f9e895f7e8dc22e60e0eadb28bc51688 | |
parent | 2616fbf6315e9d8bc1bad32faff7767c33ae0b78 (diff) | |
parent | bb21c25b3f927eeb1a1e56fa3023093f0d74204c (diff) |
Merge "Notify app op watchers when audio restrictions change." into nyc-dev
-rw-r--r-- | services/core/java/com/android/server/AppOpsService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/AppOpsService.java b/services/core/java/com/android/server/AppOpsService.java index 377a9e25348a..0a2153e9f31b 100644 --- a/services/core/java/com/android/server/AppOpsService.java +++ b/services/core/java/com/android/server/AppOpsService.java @@ -979,6 +979,7 @@ public class AppOpsService extends IAppOpsService.Stub { usageRestrictions.put(usage, r); } } + notifyWatchersOfChange(code); } @Override @@ -2284,6 +2285,10 @@ public class AppOpsService extends IAppOpsService.Stub { pruneUserRestrictionsForToken(token, userHandle); } + notifyWatchersOfChange(code); + } + + private void notifyWatchersOfChange(int code) { final ArrayList<Callback> clonedCallbacks; synchronized (this) { ArrayList<Callback> callbacks = mOpModeWatchers.get(code); |