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

Commit 08124928 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioAudioPolicyFocusListener and ducking enforced by framework

Notify AudioPolicyFocusListener an app received
  AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK even when focus is enforced by
  the framework.

Test: see bug
Bug: 37241497
Change-Id: I569e6611fb398955adbcd5bbfbda9d44db4aa729
parent 20d2450d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -381,6 +381,8 @@ public class FocusRequester {
                        Log.v(TAG, "NOT dispatching " + focusChangeToString(mFocusLossReceived)
                            + " to " + mClientId + ", ducking implemented by framework");
                    }
                    mFocusController.notifyExtPolicyFocusLoss_syncAf(
                            toAudioFocusInfo(), false /* wasDispatched */);
                    return; // with mFocusLossWasNotified = false
                }