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

Commit bfe68a85 authored by Adnan's avatar Adnan Committed by Adnan Begovic
Browse files

NetworkPolicyManager: Don't show warning notification on disabled.

JIRA: TOMATOL-148
Change-Id: I61796b1f1ad0c19d85a634f13ae0d6019ccffbb8
parent 2da8d8cb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -714,7 +714,8 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
            } else {
                notifyUnderLimitLocked(policy.template);

                if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start) {
                if (policy.isOverWarning(totalBytes) && policy.lastWarningSnooze < start
                        && policy.limitBytes != LIMIT_DISABLED) {
                    enqueueNotification(policy, TYPE_WARNING, totalBytes);
                }
            }