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:
committed by
Albert Vaca Cintora
parent
d4286e7f17
commit
ec66b86dbb
@@ -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());
|
||||
|
Reference in New Issue
Block a user