summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorSungsoo Lim <sungsoo@google.com>2015-05-28 15:06:23 +0900
committerSungsoo Lim <sungsoo@google.com>2015-05-28 15:08:47 +0900
commit060b4e1f17db00c8cfb25f4d81726c37d580f723 (patch)
tree2bff7c8955a0d1fa81475991900794c54e89b2da /media
parentde3efbb9714574379cc677764ad70563d0ee7006 (diff)
downloadframeworks_base-060b4e1f17db00c8cfb25f4d81726c37d580f723.zip
frameworks_base-060b4e1f17db00c8cfb25f4d81726c37d580f723.tar.gz
frameworks_base-060b4e1f17db00c8cfb25f4d81726c37d580f723.tar.bz2
Send a message with data in MediaController.MessageHandler.post()
Bug: 21478435 Change-Id: Ifd50b857c4503d39868540f6256c78f0cb510c83
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/session/MediaController.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/java/android/media/session/MediaController.java b/media/java/android/media/session/MediaController.java
index 2acee04..b1a51a5 100644
--- a/media/java/android/media/session/MediaController.java
+++ b/media/java/android/media/session/MediaController.java
@@ -1018,7 +1018,9 @@ public final class MediaController {
}
public void post(int what, Object obj, Bundle data) {
- obtainMessage(what, obj).sendToTarget();
+ Message msg = obtainMessage(what, obj);
+ msg.setData(data);
+ msg.sendToTarget();
}
}