diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java index bd1ef7ab57a41..4c7f8ec8f9cfb 100644 --- a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +++ b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java @@ -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();