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