diff options
author | Imre Sunyi <imre.sunyi@sonyericsson.com> | 2010-09-20 18:02:28 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonyericsson.com> | 2010-09-20 18:02:28 +0200 |
commit | 524146698f6b4652ac1057082d47184659477543 (patch) | |
tree | 6e5267b04874cb967ac3ffa281fbe689d9b9fb85 /src/com/android/settings/BatteryInfo.java | |
parent | 16502e9479f96e3fc484192e0cd4c852c4fc8ea6 (diff) | |
download | packages_apps_Settings-524146698f6b4652ac1057082d47184659477543.tar.gz packages_apps_Settings-524146698f6b4652ac1057082d47184659477543.tar.bz2 packages_apps_Settings-524146698f6b4652ac1057082d47184659477543.zip |
Support showing "Cold" battery health.
The Linux kernel supports reporting "cold" battery health to sysfs.
Android framework has not implemented this and it defaults to "unknown"
This adds handling the cold battery health.
Change-Id: Idfc7029fabcdfdaaf2b5c95977c11e0eb3fd76a7
Diffstat (limited to 'src/com/android/settings/BatteryInfo.java')
-rw-r--r-- | src/com/android/settings/BatteryInfo.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/BatteryInfo.java b/src/com/android/settings/BatteryInfo.java index 1cbe47f98..2f9d50e80 100644 --- a/src/com/android/settings/BatteryInfo.java +++ b/src/com/android/settings/BatteryInfo.java @@ -142,6 +142,8 @@ public class BatteryInfo extends Activity { healthString = getString(R.string.battery_info_health_over_voltage); } else if (health == BatteryManager.BATTERY_HEALTH_UNSPECIFIED_FAILURE) { healthString = getString(R.string.battery_info_health_unspecified_failure); + } else if (health == BatteryManager.BATTERY_HEALTH_COLD) { + healthString = getString(R.string.battery_info_health_cold); } else { healthString = getString(R.string.battery_info_health_unknown); } |