Search in sources :

Example 11 with MediaDescription

use of android.media.MediaDescription in project android_frameworks_base by crdroidandroid.

the class QueueViewRow method setQueueItem.

public void setQueueItem(MediaSession.QueueItem queueItem) {
    setTag(queueItem);
    MediaDescription metadata = queueItem.getDescription();
    final Bitmap bitmap = metadata.getIconBitmap();
    mArt.setImageBitmap(bitmap);
    mArt.setVisibility(bitmap != null ? View.VISIBLE : View.GONE);
    mTitle.setText(metadata.getTitle());
    mSummary.setText(metadata.getSubtitle());
}
Also used : Bitmap(android.graphics.Bitmap) MediaDescription(android.media.MediaDescription)

Aggregations

MediaDescription (android.media.MediaDescription)11 Bitmap (android.graphics.Bitmap)6 Notification (android.app.Notification)4