Skip to content

Commit

Permalink
Update NotificationManager.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Jun 27, 2023
1 parent f6a3f5b commit 7a3d90b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.support.v4.media.MediaDescriptionCompat
Expand Down Expand Up @@ -201,6 +202,8 @@ class NotificationManager internal constructor(
putString(MediaMetadataCompat.METADATA_KEY_TITLE, title as String?)
putString(MediaMetadataCompat.METADATA_KEY_ARTIST, artist as String?)
})
setIconUri(mediaItem.mediaMetadata.artworkUri ?: Uri.parse(audioItemHolder.audioItem.artwork))
setIconBitmap(audioItemHolder.artworkBitmap)
}.build()
}
}
Expand Down

0 comments on commit 7a3d90b

Please sign in to comment.