OSDN Git Service

Convert to new media button receiver logic.
authorDanny Baumann <dannybaumann@web.de>
Fri, 12 Aug 2016 07:33:17 +0000 (09:33 +0200)
committerDanny Baumann <dannybaumann@web.de>
Mon, 15 Aug 2016 10:07:07 +0000 (12:07 +0200)
commitc7f1f86ff59b739af1193df837b0aadf7a2386ce
tree1648077b5ed5dabe1591e634013196aa831a7a77
parent4961f4edbc2194359a15430fa99d063ac46c643d
Convert to new media button receiver logic.

Commit Ide906efdf90a6f42f3fcb6c5386328301165cb7c changed the media
button receiving logic to be routed through MediaSession, but missed to
also convert the media button intent receiver registration used for
receiving button events if our playback is stopped.

Also add the possible stop action (we're handling onStop after all)
missing in the aforementioned commit.

Change-Id: Idd4b8bc00f58eee2ff7fc2e5a685b7918988c37c
src/com/cyanogenmod/eleven/MusicPlaybackService.java