Skip to content
Commit cf031239 authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix accounting bug in BatteryStatsImpl.

A line was added to set mLastChargeStepLevel to level every time the
battery level changed when the device was plugged in. However, it was
added right before an if block that checked if mLastChargeStepLevel was
not equal to level, which then meant that the if block would never
execute. Moving the setting line below the if block to fix that and
removing redundant lines.

Bug: 111360323
Test: atest com.android.internal.os.BatteryStatsTests
Test: atest CtsJobSchedulerTestCases
Test: atest CtsBatterySavingTestCases
Change-Id: I36f1b05f8d344b4d2432696acbf370d47a769d03
parent 8e24abad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment