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

Commit 1622d409 authored by Beth Thibodeau's avatar Beth Thibodeau Committed by Gerrit Code Review
Browse files

Merge "NotificationPlayer: use AUDIOFOCUS_GAIN_TRANSIENT instead of...

Merge "NotificationPlayer: use AUDIOFOCUS_GAIN_TRANSIENT instead of AUDIOFOCUS_GAIN in looping mode"
parents 9b62bec0 de0d9e38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);