health: Fix limit notification

Change-Id: Iacea2006d35391438a28d9276b2be69c2d54c822
This commit is contained in:
Luofan Chen
2025-05-07 17:14:05 +00:00
committed by Michael Bestas
parent cea2b3c918
commit c4ce388ecf

View File

@@ -424,7 +424,7 @@ public class ChargingControlController extends LineageHealthFeature {
if (mode == MODE_LIMIT) {
if (mCurrentProvider.update(mBatteryPct, limit)) {
mChargingNotification.post(limit, mBatteryPct == limit);
mChargingNotification.post(limit, mBatteryPct >= limit);
}
} else {
ChargeTime chargeTime = getChargeTime();