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

Commit 530444f8 authored by Salvador Martinez's avatar Salvador Martinez Committed by android-build-merger
Browse files

Merge "Fix mixed up variable in triggering logic" into qt-dev am: 0139ae15

am: 58014ecc

Change-Id: I86235afad332329f3aa0787f9f0d0438941cbda5
parents 887ef6ab 58014ecc
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) {