commit | 7b8da92d49caf965e8616ceeba828275574f09c0 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Mon May 01 17:51:14 2017 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Mon May 01 17:51:14 2017 -0700 |
tree | 571d32760fee288cb99236917a41e2addb6ac021 | |
parent | a08ba3ef31e135ded437b0ca6f83bfe77a31c33b [diff] |
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