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

Commit 7e6d8e22 authored by Felipe Leme's avatar Felipe Leme
Browse files

Removed redundant call to updateRulesForRestrictPowerUL().

That method scans all UIDs, and is redundantly called on
updateRulesForTempWhitelistChangeUL() for each UID.

BUG: 30374782
BUG: 30568426

Change-Id: I56670578eff0789b1923cee0a1b316ffdbc3aa79
parent 29cc1b69
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2818,7 +2818,6 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
            for (int j = mPowerSaveTempWhitelistAppIds.size() - 1; j >= 0; j--) {
                int appId = mPowerSaveTempWhitelistAppIds.keyAt(j);
                int uid = UserHandle.getUid(user.id, appId);
                updateRulesForRestrictPowerUL();
                // Update external firewall rules.
                updateRuleForAppIdleUL(uid);
                updateRuleForDeviceIdleUL(uid);