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

Commit 599176b6 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix build breakage in BatteryController

Caused due to a checkin race.

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