Merge "Fix logging check." into udc-dev

This commit is contained in:
Kweku Adams
2023-03-30 01:03:25 +00:00
committed by Android (Google) Code Review

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;