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

Commit 911abd9b authored by Sudheer Shanka's avatar Sudheer Shanka Committed by android-build-merger
Browse files

Merge "Update NPMS internal state when app idle parole state is changed." into...

Merge "Update NPMS internal state when app idle parole state is changed." into oc-dev am: 67e802dd
am: 012ddf15

Change-Id: Ic491c87920519ac0fc04353f62f02a45dc1ba5fc
parents 3ab2d332 012ddf15
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2992,7 +2992,12 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
                // Skip if it had no restrictions to begin with
                if ((oldRules & MASK_ALL_NETWORKS) == 0) continue;
            }
            updateRulesForPowerRestrictionsUL(uid, oldRules, paroled);
            final int newUidRules = updateRulesForPowerRestrictionsUL(uid, oldRules, paroled);
            if (newUidRules == RULE_NONE) {
                mUidRules.delete(uid);
            } else {
                mUidRules.put(uid, newUidRules);
            }
        }
    }