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

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

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

* commit '3ea5728e':
  Tweak level at which we reset battery stats to 90%.
parents c042eb77 3ea5728e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4030,7 +4030,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();