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

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

Merge "Fix mixed up variable in triggering logic" into qt-dev

parents dcfe0d33 290496e9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -341,8 +341,9 @@ public class PowerUI extends SystemUI {
            // mark if we've already shown a warning this cycle. This will prevent the notification
            // trigger from spamming users by only showing low/critical warnings once per cycle
            if (currentSnapshot.getTimeRemainingMillis()
                    <= currentSnapshot.getSevereLevelThreshold()
                    || currentSnapshot.getBatteryLevel() <= mLowBatteryReminderLevels[1]) {
                    <= currentSnapshot.getSevereThresholdMillis()
                    || currentSnapshot.getBatteryLevel()
                    <= currentSnapshot.getSevereLevelThreshold()) {
                mSevereWarningShownThisChargeCycle = true;
                mLowWarningShownThisChargeCycle = true;
                if (DEBUG) {