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

Commit 8a17910f authored by Amith Yamasani's avatar Amith Yamasani Committed by Ed Heyl
Browse files

Fix build breakage in BatteryController

Caused due to a checkin race.

Change-Id: Icb636e4b2258064572b494ee5fcdd30538691d81
parent 82649cf5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -151,7 +151,7 @@ public class BatteryController extends StateController {
            // Initialise tracker state.
            // Initialise tracker state.
            BatteryService batteryService = (BatteryService) ServiceManager.getService("battery");
            BatteryService batteryService = (BatteryService) ServiceManager.getService("battery");
            if (batteryService != null) {
            if (batteryService != null) {
                mBatteryHealthy = !batteryService.isBatteryLow();
                mBatteryHealthy = !batteryService.getBatteryLevelLow();
                mCharging = batteryService.isPowered(BatteryManager.BATTERY_PLUGGED_ANY);
                mCharging = batteryService.isPowered(BatteryManager.BATTERY_PLUGGED_ANY);
            } else {
            } else {
                // Unavailable for some reason, we default to false and let ACTION_BATTERY_[OK,LOW]
                // Unavailable for some reason, we default to false and let ACTION_BATTERY_[OK,LOW]