Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ea450fa authored by Suprabh Shukla's avatar Suprabh Shukla Committed by android-build-merger
Browse files

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

am: 1bd23b3b

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

Change-Id: Ib4b28cf093a0b051c3addea3c899ac0dc656ba0e
parents c6f22d70 1bd23b3b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
            }
        }
    }