Fix logging check.

Bug: 138239687
Test: None
Change-Id: I4a0fce71277865ac24a916527801db7bad68184a
This commit is contained in:
Kweku Adams
2023-03-29 19:00:15 +00:00
parent 1dfa76c9e7
commit 2cc2a55aea

View File

@@ -188,7 +188,7 @@ public final class BatteryController extends RestrictingController {
mLastReportedStatsdStablePower = stablePower;
}
if (mLastReportedStatsdBatteryNotLow == null
|| mLastReportedStatsdBatteryNotLow != stablePower) {
|| mLastReportedStatsdBatteryNotLow != batteryNotLow) {
logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_BATTERY_NOT_LOW,
batteryNotLow);
mLastReportedStatsdBatteryNotLow = batteryNotLow;