diff options
author | 2022-07-13 15:58:46 +0000 | |
---|---|---|
committer | 2022-07-13 15:58:46 +0000 | |
commit | 1622d409d9cf672ea8b81b8037142dafc66f8ce5 (patch) | |
tree | 71072e7b79d924b3af3cb41adb0f514c4e991521 | |
parent | 9b62bec0211ef0012ee2adeb6b9bb52359300c1f (diff) | |
parent | de0d9e38080ce5f9ea8637da66b22e0d4fe62d16 (diff) |
Merge "NotificationPlayer: use AUDIOFOCUS_GAIN_TRANSIENT instead of AUDIOFOCUS_GAIN in looping mode"
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java b/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java index a617850ef0ae..f8f784ff948c 100644 --- a/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java +++ b/packages/SystemUI/src/com/android/systemui/media/NotificationPlayer.java @@ -112,7 +112,7 @@ public class NotificationPlayer implements OnCompletionListener, OnErrorListener if (DEBUG) Log.d(mTag, "requesting AudioFocus"); int focusGain = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK; if (mCmd.looping) { - focusGain = AudioManager.AUDIOFOCUS_GAIN; + focusGain = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT; } mNotificationRampTimeMs = audioManager.getFocusRampTimeMs( focusGain, mCmd.attributes); |