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
This commit is contained in:
committed by
Johan Redestig
parent
16502e9479
commit
524146698f
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user