diff options
| author | 2014-06-06 11:41:27 -0700 | |
|---|---|---|
| committer | 2014-06-06 13:13:36 -0700 | |
| commit | 8a17910f81a75dfd395344dfcc548a489f212e45 (patch) | |
| tree | 87664c6fd059db3d99cb82b1a40ad2a51d2bb730 | |
| parent | 82649cf5a096ab703b4de1cf3f14dfa1351e84ba (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] |