diff options
| author | 2014-06-06 11:41:27 -0700 | |
|---|---|---|
| committer | 2014-06-06 11:41:27 -0700 | |
| commit | 599176b6162bd7127251e937a7042c53c31f982b (patch) | |
| tree | f2cd50a87c34b7b97292ae7438c9490096c1baa0 | |
| parent | 421e2fd044815f00f0160810a052658abd95c4d8 (diff) | |
Fix build breakage in BatteryController
Caused due to a checkin race.
Change-Id: Icb636e4b2258064572b494ee5fcdd30538691d81
| -rw-r--r-- | services/core/java/com/android/server/task/controllers/BatteryController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/task/controllers/BatteryController.java b/services/core/java/com/android/server/task/controllers/BatteryController.java index 585b41fce23b..4727e9a6b831 100644 --- a/services/core/java/com/android/server/task/controllers/BatteryController.java +++ b/services/core/java/com/android/server/task/controllers/BatteryController.java @@ -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] |