Skip to content

Commit

Permalink
fix: map artist to subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed May 16, 2024
1 parent 466f931 commit aefe6d8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ class NotificationManager internal constructor(
}
artist?.let {
putString(MediaMetadataCompat.METADATA_KEY_ARTIST, it)
putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, it)
}
})
setIconUri(mediaItem?.mediaMetadata?.artworkUri ?: Uri.parse(audioItemHolder?.audioItem?.artwork
Expand Down Expand Up @@ -394,6 +395,7 @@ class NotificationManager internal constructor(
}
getArtist()?.let {
putString(MediaMetadataCompat.METADATA_KEY_ARTIST, it)
putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, it)
}
getTitle()?.let {
putString(MediaMetadataCompat.METADATA_KEY_TITLE, it)
Expand Down

0 comments on commit aefe6d8

Please sign in to comment.