Merge "Updating user restrictions when they are removed" into nyc-dev am: 1893c4cea7 am: 057a81d0b3

am: 1bd23b3bf1

* commit '1bd23b3bf13aa3f6353321b5af499b937b254405':
  Updating user restrictions when they are removed

Change-Id: Ib4b28cf093a0b051c3addea3c899ac0dc656ba0e
This commit is contained in:
Suprabh Shukla
2016-05-25 03:22:10 +00:00
committed by android-build-merger

View File

@@ -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);
}
}
}