Skip to content
Commit 7b8da92d authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Audio focus: fix notifying apps to pause without an external policy

In the absence of an external audio policy that implements ducking,
   check whether the focus loser has the
   AUDIOFOCUS_FLAG_PAUSES_ON_DUCKABLE_LOSS flag: if yes, do not
   let the framework handle ducking, notify the app.

Test: use app that calls AudioFocusRequest.Builder.setWillPauseWhenDucked(true) and verify it doesn't get ducked by framework
Bug: 30258418
Change-Id: I12655b413504ed101dd14d2b60ffdaf16c5b6148
parent a08ba3ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment