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

Commit 2a043035 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update mMinLearnedBatteryCapacity when necessary."

parents e5d86e43 8a871d81
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12709,7 +12709,7 @@ public class BatteryStatsImpl extends BatteryStats {
        if (mMinLearnedBatteryCapacity == -1) {
            mMinLearnedBatteryCapacity = chargeFullUAh;
        } else {
            Math.min(mMinLearnedBatteryCapacity, chargeFullUAh);
            mMinLearnedBatteryCapacity = Math.min(mMinLearnedBatteryCapacity, chargeFullUAh);
        }
        mMaxLearnedBatteryCapacity = Math.max(mMaxLearnedBatteryCapacity, chargeFullUAh);
    }