2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Set artist in MediaSession

This commit is contained in:
Nicolas Fella
2019-02-03 16:31:41 +01:00
committed by Albert Vaca Cintora
parent d4286e7f17
commit ec66b86dbb

View File

@@ -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());