Merge "Updating user restrictions when they are removed" into nyc-dev
am: 1893c4cea7
* commit '1893c4cea7825e9f44f08b6165a04fd90c1adf9d':
Updating user restrictions when they are removed
Change-Id: Iccd07150139f025fa16b74eee2670252b6c17a3d
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user