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

Commit c078f3b9 authored by Adnan's avatar Adnan Committed by Steve Kondik
Browse files

NetworkPolicyManager: Don't show warning notification on disabled.

JIRA: TOMATOL-148
Change-Id: I61796b1f1ad0c19d85a634f13ae0d6019ccffbb8
parent 3952cea8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -804,7 +804,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);
                }
            }