commit | 5c768f4c8584d93fae3f5e87c8fdcc88ecfba002 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Tue Jun 09 18:06:05 2015 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Wed Jun 10 14:46:26 2015 -0700 |
tree | 192ae80aaae3907dd243aeea0b96539737bbcf6b | |
parent | 113769d70b2221697ad9a9553da68ec6483cbfa1 [diff] |
SoundPool monitors AppOps for OP_PLAY_AUDIO Fix performance regression in SoundPool by not checking SoundPool can play audio everytime it's about to play. Instead check for permission in constructor and register a listener for changes on OP_PLAY_AUDIO. Bug 20018833 Change-Id: I4e7a633d23b98653a149681d18a387cd560efe4d