summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-05-13 11:26:18 +0000
committerThomas Martitz <kugel@rockbox.org>2011-05-13 11:26:18 +0000
commit94dacca5592cd1fd3cdcbe3d569ababc633668c7 (patch)
treec4244435d2d16e1001d5f3a0e0dcc360493161fa /apps/plugins
parentfffc6c4a801ac5203b3a45599f55ce6c9662066e (diff)
downloadrockbox-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 'apps/plugins')
0 files changed, 0 insertions, 0 deletions