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

Commit 012ddf15 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 oc-dev

am: 67e802dd

Change-Id: I88cacca1d3a576b69dc0aaa6806b6c2901afa696
parents 67004e20 67e802dd
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);
            }
        }
    }