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

Commit 96906f72 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Fix BatteryStats Screen On timer reset

StopwatchTimer reset uses elapsedRealtime not uptime

Bug: 187844042
Test: builds + boots
Change-Id: I82286d74fef6256971361e70a787a2b39a7cbba4
parent 720add59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11194,7 +11194,7 @@ public class BatteryStatsImpl extends BatteryStats {
        final long elapsedRealtimeUs = elapsedRealtimeMillis * 1000;
        mStartCount = 0;
        initTimes(uptimeUs, elapsedRealtimeUs);
        mScreenOnTimer.reset(false, uptimeUs);
        mScreenOnTimer.reset(false, elapsedRealtimeUs);
        mScreenDozeTimer.reset(false, elapsedRealtimeUs);
        for (int i=0; i<NUM_SCREEN_BRIGHTNESS_BINS; i++) {
            mScreenBrightnessTimer[i].reset(false, elapsedRealtimeUs);