Fix mobile data usage chart on first day of cycle

Bug: 295260929
Test: manual - on Mobile data usage
Change-Id: Ib3345ee8541b9312fd26c7320fcf7193dc986236
This commit is contained in:
Chaohui Wang
2023-11-01 19:58:50 +08:00
parent 1742fa2ed0
commit e97bffd63f

View File

@@ -112,9 +112,6 @@ public class ChartDataUsagePreference extends Preference {
// increment by current bucket total // increment by current bucket total
totalData += data.getUsage(); 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(startTime - mStart + 1), (int) (totalData / RESOLUTION));
points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION));
} }