summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorKweku Adams <kwekua@google.com>2019-05-03 16:15:14 -0700
committerKweku Adams <kwekua@google.com>2019-05-03 16:19:07 -0700
commitcf031239c3eceec0e9ac8819f0036966a95ab406 (patch)
treeb8168ccf97bc62e78d45054ae7ba5cff40c00626 /tools/aapt2/java/JavaClassGenerator.cpp
parent8e24abad643dd3b5a85f1152590e4948a498fcc6 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions