diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-05-13 11:26:18 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-05-13 11:26:18 +0000 |
commit | 94dacca5592cd1fd3cdcbe3d569ababc633668c7 (patch) | |
tree | c4244435d2d16e1001d5f3a0e0dcc360493161fa /firmware | |
parent | fffc6c4a801ac5203b3a45599f55ce6c9662066e (diff) | |
download | rockbox-94dacca5592cd1fd3cdcbe3d569ababc633668c7.tar.gz rockbox-94dacca5592cd1fd3cdcbe3d569ababc633668c7.zip |
Rework MediaButtonReceiver a bit:
* Get rid of reflection since the lack of methods can be detected via exceptions
* Use requestAudioFocus/abandonAudioFocus APIs on 2.2+ to play nice with other music apps.
* Don't unregister the receiver on exit so we can receive media button presses (and startup the service) after idle poweroff (hopefully it's ok if mMediaButtonReceiver is garbage collected)
This should fix that Android calls the standard music app sometimes when those buttons are pressed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29865 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions