Merge "Fix mixed up variable in triggering logic" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0139ae1581
@@ -341,8 +341,9 @@ public class PowerUI extends SystemUI {
|
|||||||
// mark if we've already shown a warning this cycle. This will prevent the notification
|
// 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
|
// trigger from spamming users by only showing low/critical warnings once per cycle
|
||||||
if (currentSnapshot.getTimeRemainingMillis()
|
if (currentSnapshot.getTimeRemainingMillis()
|
||||||
<= currentSnapshot.getSevereLevelThreshold()
|
<= currentSnapshot.getSevereThresholdMillis()
|
||||||
|| currentSnapshot.getBatteryLevel() <= mLowBatteryReminderLevels[1]) {
|
|| currentSnapshot.getBatteryLevel()
|
||||||
|
<= currentSnapshot.getSevereLevelThreshold()) {
|
||||||
mSevereWarningShownThisChargeCycle = true;
|
mSevereWarningShownThisChargeCycle = true;
|
||||||
mLowWarningShownThisChargeCycle = true;
|
mLowWarningShownThisChargeCycle = true;
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user