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

This commit is contained in:
Chaohui Wang
2023-11-02 00:04:47 +00:00
committed by Android (Google) Code Review

View File

@@ -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));
}