Merge "Updating user restrictions when they are removed" into nyc-dev am: 1893c4cea7
am: 057a81d0b3
* commit '057a81d0b302ba5c76690ae22bdc2f5a5f437700':
Updating user restrictions when they are removed
Change-Id: I7d97675cdcda56ee14c43c2fa1755a29e4c6361a
This commit is contained in:
@@ -2180,8 +2180,9 @@ public class AppOpsService extends IAppOpsService.Stub {
|
|||||||
Preconditions.checkNotNull(token);
|
Preconditions.checkNotNull(token);
|
||||||
for (int i = 0; i < AppOpsManager._NUM_OP; i++) {
|
for (int i = 0; i < AppOpsManager._NUM_OP; i++) {
|
||||||
String restriction = AppOpsManager.opToRestriction(i);
|
String restriction = AppOpsManager.opToRestriction(i);
|
||||||
if (restriction != null && restrictions.getBoolean(restriction, false)) {
|
if (restriction != null) {
|
||||||
setUserRestrictionNoCheck(i, true, token, userHandle, null);
|
setUserRestrictionNoCheck(i, restrictions.getBoolean(restriction, false), token,
|
||||||
|
userHandle, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user