summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSungsoo Lim <sungsoo@google.com>2015-11-02 09:18:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-11-02 09:18:22 +0000
commit12647500b3a5ae70eb47f3fa4a026994277bb0ff (patch)
treec5ee35f73890d5ee24da8d9bcc14a53eb9422103
parent54b52d0b7b33490a62e5e9e27c5ba5e33bfbe281 (diff)
parentecc231b11c9e6c1813bf12232559ea372cf02ea7 (diff)
downloadandroid_frameworks_support-12647500b3a5ae70eb47f3fa4a026994277bb0ff.tar.gz
android_frameworks_support-12647500b3a5ae70eb47f3fa4a026994277bb0ff.tar.bz2
android_frameworks_support-12647500b3a5ae70eb47f3fa4a026994277bb0ff.zip
Merge "Send a message with data in MediaControllerCompat.MessageHandler.post()" into mnc-ub-dev
-rw-r--r--v4/java/android/support/v4/media/session/MediaControllerCompat.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/v4/java/android/support/v4/media/session/MediaControllerCompat.java b/v4/java/android/support/v4/media/session/MediaControllerCompat.java
index aa523bb27d..9abade31ce 100644
--- a/v4/java/android/support/v4/media/session/MediaControllerCompat.java
+++ b/v4/java/android/support/v4/media/session/MediaControllerCompat.java
@@ -557,7 +557,9 @@ public final class MediaControllerCompat {
}
public void post(int what, Object obj, Bundle data) {
- obtainMessage(what, obj).sendToTarget();
+ Message msg = obtainMessage(what, obj);
+ msg.setData(data);
+ msg.sendToTarget();
}
}
}