Skip to content

Commit

Permalink
Merge branch 'jb34510' into 'master'
Browse files Browse the repository at this point in the history
[lipstick] Don't send low battery notification twice. Contributes to JB#34510

See merge request mer-core/lipstick!109
  • Loading branch information
Venemo committed Mar 7, 2019
2 parents b33ad9f + 798e331 commit da781e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notifications/batterynotifier.cpp
Expand Up @@ -124,8 +124,8 @@ void BatteryNotifier::prepareNotification()

if ((isLevelChanged || isStateChanged) && !isAnyChargingState) {
if (newState.level == BatteryLow) {
// lowBatteryAlert is called immediately, and will send NotificationLowBattery
startLowBatteryNotifier();
toSend << NotificationLowBattery;
} else if (isLevelChanged && m_lastState.state == StateDischarging) {
toRemove << NotificationLowBattery;

Expand Down

0 comments on commit da781e1

Please sign in to comment.