MediaSessionCompat: Add missing call to onExtrasChanged()

Bug: 28731646
Change-Id: Id726784f25d52801920a78083a37b2bfb588c805
diff --git a/media-compat/java/android/support/v4/media/session/MediaSessionCompat.java b/media-compat/java/android/support/v4/media/session/MediaSessionCompat.java
index d184f07..0f424d5 100644
--- a/media-compat/java/android/support/v4/media/session/MediaSessionCompat.java
+++ b/media-compat/java/android/support/v4/media/session/MediaSessionCompat.java
@@ -1514,6 +1514,7 @@
         @Override
         public void setExtras(Bundle extras) {
             mExtras = extras;
+            sendExtras(extras);
         }
 
         // Registers/unregisters the RCC and MediaButtonEventReceiver as needed.
@@ -1729,6 +1730,18 @@
             mControllerCallbacks.finishBroadcast();
         }
 
+        private void sendExtras(Bundle extras) {
+            int size = mControllerCallbacks.beginBroadcast();
+            for (int i = size - 1; i >= 0; i--) {
+                IMediaControllerCallback cb = mControllerCallbacks.getBroadcastItem(i);
+                try {
+                    cb.onExtrasChanged(extras);
+                } catch (RemoteException e) {
+                }
+            }
+            mControllerCallbacks.finishBroadcast();
+        }
+
         class MediaSessionStub extends IMediaSession.Stub {
             @Override
             public void sendCommand(String command, Bundle args, ResultReceiverWrapper cb) {