Merge "Fix screen on count text dump" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-19 20:16:28 +00:00
committed by Android (Google) Code Review

View File

@@ -4447,8 +4447,7 @@ public abstract class BatteryStats implements Parcelable {
pw.println(sb.toString());
}
final long dischargeScreenOnCount =
dischargeCount - dischargeScreenOffCount - dischargeScreenDozeCount;
final long dischargeScreenOnCount = dischargeCount - dischargeScreenOffCount;
if (dischargeScreenOnCount >= 0) {
sb.setLength(0);
sb.append(prefix);