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

Commit dcab5008 authored by Jan Nordqvist's avatar Jan Nordqvist Committed by Eric Schwarzenbach
Browse files

Add cycle information to DataUsageInfo.

Test: manual
Bug: 70950124

Change-Id: I0afd5657788e95b72d3d420b47a06e6527892d23
parent bc88614a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -158,6 +158,9 @@ public class DataUsageController {
            usage.startDate = start;
            usage.usageLevel = totalBytes;
            usage.period = formatDateRange(start, end);
            usage.cycleStart = start;
            usage.cycleEnd = end;

            if (policy != null) {
                usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0;
                usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0;
@@ -245,6 +248,8 @@ public class DataUsageController {
        public long limitLevel;
        public long warningLevel;
        public long usageLevel;
        public long cycleStart;
        public long cycleEnd;
    }

    public interface Callback {