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

Commit faa9fb8b authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "PowerUI: Don't play sound on every update below level." into lmp-dev

parents f93afcf1 7290d192
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -193,6 +193,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
        }
        if (mPlaySound) {
            attachLowBatterySound(nb);
            mPlaySound = false;
        }
        final Notification n = nb.build();
        if (n.headsUpContentView != null) {
@@ -283,7 +284,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
    public void showLowBatteryWarning(boolean playSound) {
        Slog.i(TAG,
                "show low battery warning: level=" + mBatteryLevel
                + " [" + mBucket + "]");
                + " [" + mBucket + "] playSound=" + playSound);
        mPlaySound = playSound;
        mWarning = true;
        updateNotification();