diff options
| author | 2016-05-25 03:11:47 +0000 | |
|---|---|---|
| committer | 2016-05-25 03:11:49 +0000 | |
| commit | 1893c4cea7825e9f44f08b6165a04fd90c1adf9d (patch) | |
| tree | 65ebdd6203c9f17662d4929df7d94817af275329 | |
| parent | edebcae9781fa897914952e9346a14afd2e08967 (diff) | |
| parent | 64e0dcb989f27fc9246f3b2f40accd261f574d7e (diff) | |
Merge "Updating user restrictions when they are removed" into nyc-dev
| -rw-r--r-- | services/core/java/com/android/server/AppOpsService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/AppOpsService.java b/services/core/java/com/android/server/AppOpsService.java index dab7d706a6d2..b5b0cd86f397 100644 --- a/services/core/java/com/android/server/AppOpsService.java +++ b/services/core/java/com/android/server/AppOpsService.java @@ -2180,8 +2180,9 @@ public class AppOpsService extends IAppOpsService.Stub { Preconditions.checkNotNull(token); for (int i = 0; i < AppOpsManager._NUM_OP; i++) { String restriction = AppOpsManager.opToRestriction(i); - if (restriction != null && restrictions.getBoolean(restriction, false)) { - setUserRestrictionNoCheck(i, true, token, userHandle, null); + if (restriction != null) { + setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token, + userHandle, null); } } } |