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

Commit 2a754471 authored by Chaohui Wang's avatar Chaohui Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix mobile data usage chart on first day of cycle" into main

parents d37878f7 e97bffd6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -112,9 +112,6 @@ public class ChartDataUsagePreference extends Preference {
            // increment by current bucket total
            totalData += data.getUsage();

            if (points.size() == 1) {
                points.put(toInt(startTime - mStart) - 1, -1);
            }
            points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION));
            points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION));
        }