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

Commit f532fc32 authored by Pavel Grafov's avatar Pavel Grafov Committed by Android (Google) Code Review
Browse files

Merge "Update policy cache when clearing policy" into main

parents 8ee235ee 748d4dca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10470,6 +10470,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        // Reset some of the user-specific policies.
        final DevicePolicyData policy = getUserData(userId);
        policy.mPermissionPolicy = DevicePolicyManager.PERMISSION_POLICY_PROMPT;
        mPolicyCache.setPermissionPolicy(userId, policy.mPermissionPolicy);
        // Clear delegations.
        policy.mDelegationMap.clear();
        policy.mStatusBarDisabled = false;