Commit ec66b86d authored by Nicolas Fella's avatar Nicolas Fella Committed by Albert Vaca Cintora

Set artist in MediaSession

parent d4286e7f
......@@ -248,6 +248,7 @@ public class MprisMediaSession implements SharedPreferences.OnSharedPreferenceCh
}
if (!notificationPlayer.getArtist().isEmpty()) {
metadata.putString(MediaMetadataCompat.METADATA_KEY_AUTHOR, notificationPlayer.getArtist());
metadata.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, notificationPlayer.getArtist());
}
if (!notificationPlayer.getAlbum().isEmpty()) {
metadata.putString(MediaMetadataCompat.METADATA_KEY_ALBUM, notificationPlayer.getAlbum());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment