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

Audio focus: definitive loss of focus removes client from stack

Use annotation for locking instead of javadoc comments.
Better javadoc for focus loss propagation.
When an audio focus user loses focus with AUDIOFOCUS_LOSS,
  remove it from the focus stack to prevent improper
  app behaviors (e.g. starting to play when regaining focus
  after a definitive loss).

Test: 1/ launch media playback app that uses audio focus
         and play music
      2/ launch other media app that requests AUDIOFOCUS_GAIN
         and play media
      3/ "adb shell dumpsys audio" verify first app is not
         in focus stack anymore
Change-Id: I2d4fb8ab8e554a38a650ddce440cc2f315083d08
parent 28bc987f
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