Bat stats: misc, percents are of battery drain.

Change-Id: I6f1fb6ff33f524fe76d519a6194fad67559193bd
This commit is contained in:
Dianne Hackborn
2014-03-12 13:27:29 -07:00
parent 757450247d
commit 17452d5238
3 changed files with 11 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ public class PowerGaugePreference extends Preference {
public void setPercent(double percentOfMax, double percentOfTotal) {
mProgress = (int) Math.ceil(percentOfMax);
mProgressText = getContext().getResources().getString(
R.string.percentage, (int) Math.ceil(percentOfTotal));
R.string.percentage, (int) (percentOfTotal+.5));
notifyChanged();
}