commit | 4ca81cda00a0bdbebd757b0489cd65f1a1ab5c36 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Oct 09 01:22:09 2019 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Oct 09 01:22:09 2019 +0000 |
tree | d8436dd3adfb017f9152b400b74e104f9c594367 | |
parent | 6fde61add319f54b5af83707f38239804b62f758 [diff] | |
parent | 18f7a809bd3f1ec45a2b641893697ff686062610 [diff] |
Snap for 5928451 from 18f7a809bd3f1ec45a2b641893697ff686062610 to qt-qpr2-release Change-Id: If11dbcd0212a900d958d352d3df714bdabe72ca2
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/media/BluetoothSL4AAudioSrcMBS.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/media/BluetoothSL4AAudioSrcMBS.java index fdc7ec9..4bdca3f 100644 --- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/media/BluetoothSL4AAudioSrcMBS.java +++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/media/BluetoothSL4AAudioSrcMBS.java
@@ -168,6 +168,15 @@ .build(); mMediaSession.setPlaybackState(state); mMediaSession.setActive(true); + + // Sets the PlaybackState to STOPPED now that we are able to receive MediaSession callbacks. + state = new PlaybackState.Builder() + .setActions(PlaybackState.ACTION_PLAY | PlaybackState.ACTION_PAUSE + | PlaybackState.ACTION_SKIP_TO_NEXT | PlaybackState.ACTION_SKIP_TO_PREVIOUS + | PlaybackState.ACTION_STOP) + .setState(PlaybackState.STATE_STOPPED, PlaybackState.PLAYBACK_POSITION_UNKNOWN, 1) + .build(); + mMediaSession.setPlaybackState(state); } @Override