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

Commit 7293dfca authored by Hui Yu's avatar Hui Yu
Browse files

[DO NOT MERGE] Reset mTrackingReportedValues in endSample()

Otherwise, when next SamplingTimer.update() is called, it will take
zero as start time.

Bug: 142466892
Test: NA.

Change-Id: I04625fadd8fd8bab3ba83b8e7cd10737ad34e60b
(cherry picked from commit c7d49e01)
parent 248a7396
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1868,6 +1868,7 @@ public class BatteryStatsImpl extends BatteryStats {
            mCount = computeCurrentCountLocked();
            mUnpluggedReportedTotalTime = mCurrentReportedTotalTime = 0;
            mUnpluggedReportedCount = mCurrentReportedCount = 0;
            mTrackingReportedValues = false;
        }
        public void setUpdateVersion(int version) {