Skip to content

Commit 3ea5728

Browse files
author
Dianne Hackborn
committed
Tweak level at which we reset battery stats to 90%.
Change-Id: I81151809100912c7956536d5d47279d2c2fea8c4
1 parent b5a8654 commit 3ea5728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/com/android/internal/os/BatteryStatsImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4028,7 +4028,7 @@ void setOnBattery(boolean onBattery, int oldStatus, int level) {
40284028
// we have gone through a significant charge (from a very low
40294029
// level to a now very high level).
40304030
if (oldStatus == BatteryManager.BATTERY_STATUS_FULL
4031-
|| level >= 95
4031+
|| level >= 90
40324032
|| (mDischargeCurrentLevel < 20 && level >= 80)) {
40334033
doWrite = true;
40344034
resetAllStatsLocked();

0 commit comments

Comments
 (0)