Loading services/core/java/com/android/server/BatteryService.java +1 −1 Original line number Diff line number Diff line Loading @@ -624,7 +624,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(); } Loading Loading
services/core/java/com/android/server/BatteryService.java +1 −1 Original line number Diff line number Diff line Loading @@ -624,7 +624,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(); } Loading