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

Commit 58014ecc 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

Change-Id: I9c3ab49350cd3a569d2ac80ffa48e89948ec3822
parents e8e3ea32 0139ae15
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) {