diff options
author | Sungsoo Lim <sungsoo@google.com> | 2015-05-28 15:06:23 +0900 |
---|---|---|
committer | Sungsoo Lim <sungsoo@google.com> | 2015-05-28 15:08:47 +0900 |
commit | 060b4e1f17db00c8cfb25f4d81726c37d580f723 (patch) | |
tree | 2bff7c8955a0d1fa81475991900794c54e89b2da /media | |
parent | de3efbb9714574379cc677764ad70563d0ee7006 (diff) | |
download | frameworks_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.java | 4 |
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(); } } |