Combine MediaSession Callback and TransportControlsCallback

This combines them into a single Callback class and adds default
handling to media buttons to check the available actions and call
one of the other methods if appropriate.

Change-Id: If9897d8cf6d8d8046aa85a646c22382f1db1461b
This commit is contained in:
RoboErik
2014-08-06 13:43:22 -07:00
parent 217e8a2b46
commit 477d1197c3
7 changed files with 283 additions and 337 deletions

View File

@@ -970,8 +970,7 @@ import java.lang.IllegalArgumentException;
public final static int RCSE_ID_UNREGISTERED = -1;
// USE_SESSIONS
private MediaSession.TransportControlsCallback mTransportListener
= new MediaSession.TransportControlsCallback() {
private MediaSession.Callback mTransportListener = new MediaSession.Callback() {
@Override
public void onSeekTo(long pos) {