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

Commit e9e23405 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #3113424: Battery stats don't reset on Crespo" into gingerbread

parents d5aaff54 266e607b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3985,8 +3985,8 @@ 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 >= 100
                        || (mDischargeCurrentLevel < 20 && level > 90)) {
                        || level >= 95
                        || (mDischargeCurrentLevel < 30 && level >= 90)) {
                    doWrite = true;
                    resetAllStatsLocked();
                    mDischargeStartLevel = level;