Add battery stats perference in battery settings page.

Add a preferenceGroup at the bottom of the page, which contains
Screen and Cell usage data.

Bug: 35305983
Test: RunSettingsRoboTests & Screenshot
Change-Id: Ida6e92ddbd7155ec974a2f04c6d6d02ab9dab210
This commit is contained in:
jackqdyulei
2017-02-14 15:46:10 -08:00
parent 755a9dea23
commit 3934722439
5 changed files with 190 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ public class PowerGaugePreference extends TintablePreference {
}
public void setPercent(double percentOfTotal) {
mProgress = Utils.formatPercentage((int) (percentOfTotal + 0.5));
mProgress = Utils.formatPercentage(percentOfTotal, true);
notifyChanged();
}