Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bc6bb85 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 97b0b7bb: am 3ea5728e: Tweak level at which we reset battery stats to 90%.

* commit '97b0b7bb':
  Tweak level at which we reset battery stats to 90%.
parents 4d46ecb0 97b0b7bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4087,7 +4087,7 @@ public final class BatteryStatsImpl extends BatteryStats {
                // we have gone through a significant charge (from a very low
                // level to a now very high level).
                if (oldStatus == BatteryManager.BATTERY_STATUS_FULL
                        || level >= 95
                        || level >= 90
                        || (mDischargeCurrentLevel < 20 && level >= 80)) {
                    doWrite = true;
                    resetAllStatsLocked();