diff options
author | RoboErik <epastern@google.com> | 2014-08-28 21:51:49 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-28 21:51:50 +0000 |
commit | 350be2e1c2e4ad8b1a1386a55b40c123f148e94e (patch) | |
tree | 5ed9e9cfaa4e6af7d64e7a4c7adf7443ce81c411 /tests | |
parent | 2f2ea058db85393774e9a73144d7c60dc9bdb6aa (diff) | |
parent | 3625bf72cb8bcf3c7f8f8cd8d708d7206824cc62 (diff) | |
download | frameworks_base-350be2e1c2e4ad8b1a1386a55b40c123f148e94e.zip frameworks_base-350be2e1c2e4ad8b1a1386a55b40c123f148e94e.tar.gz frameworks_base-350be2e1c2e4ad8b1a1386a55b40c123f148e94e.tar.bz2 |
Merge "Update to MediaBrowser APIs per council feedback" into lmp-dev
Diffstat (limited to 'tests')
-rw-r--r-- | tests/OneMedia/src/com/android/onemedia/NotificationHelper.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/OneMedia/src/com/android/onemedia/NotificationHelper.java b/tests/OneMedia/src/com/android/onemedia/NotificationHelper.java index a5bcda5..d1172ac 100644 --- a/tests/OneMedia/src/com/android/onemedia/NotificationHelper.java +++ b/tests/OneMedia/src/com/android/onemedia/NotificationHelper.java @@ -12,6 +12,7 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Bitmap; +import android.media.MediaDescription; import android.media.MediaMetadata; import android.media.session.MediaController; import android.media.session.MediaSession; @@ -185,10 +186,10 @@ public class NotificationHelper extends BroadcastReceiver { text = "Empty metadata!"; art = null; } else { - MediaMetadata.Description description = mMetadata.getDescription(); + MediaDescription description = mMetadata.getDescription(); title = description.getTitle(); text = description.getSubtitle(); - art = description.getIcon(); + art = description.getIconBitmap(); } String playPauseLabel = ""; |