Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8046ba6e authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Sending BATTERY_LEVEL_CHANGED when plug type changes

Test: manual:
adb shell dumpsys battery unplug|reset
should trigger the broadcast

Bug: 112322475
Change-Id: I16b13274100903cb738a047c76d25cf30e480b88
parent 0b9a87c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -625,7 +625,7 @@ public final class BatteryService extends SystemService {
            // them will get the new sequence number at that point.  (See for example how testing
            // of JobScheduler's BatteryController works.)
            sendBatteryChangedIntentLocked();
            if (mLastBatteryLevel != mHealthInfo.batteryLevel) {
            if (mLastBatteryLevel != mHealthInfo.batteryLevel || mLastPlugType != mPlugType) {
                sendBatteryLevelChangedIntentLocked();
            }