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
This commit is contained in:
Jean-Michel Trivi
2017-05-05 09:44:28 -07:00
parent 20d2450da4
commit 0812492820

View File

@@ -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
}