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

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

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

* commit '4bc6bb85':
  Tweak level at which we reset battery stats to 90%.
parents 41b03e8c 4bc6bb85
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();