Bat stats: misc, percents are of battery drain.
Change-Id: I6f1fb6ff33f524fe76d519a6194fad67559193bd
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user