From 8362fa393ae418dfd21de73e6e7b4e303cb6bc51 Mon Sep 17 00:00:00 2001 From: Sam Steele Date: Fri, 29 Jun 2012 11:28:01 -0700 Subject: [PATCH] Make the artist name display correctly on the ICS/JB lock screen --- app/src/fm/last/android/player/RadioPlayerService.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/fm/last/android/player/RadioPlayerService.java b/app/src/fm/last/android/player/RadioPlayerService.java index 67b48fa7..43ddfbc8 100644 --- a/app/src/fm/last/android/player/RadioPlayerService.java +++ b/app/src/fm/last/android/player/RadioPlayerService.java @@ -753,14 +753,12 @@ private void playTrack(RadioTrack track, MediaPlayer p) { RemoteControlClient.PLAYSTATE_PLAYING); mRemoteControlClientCompat.setTransportControlFlags( - RemoteControlClient.FLAG_KEY_MEDIA_PLAY | - RemoteControlClient.FLAG_KEY_MEDIA_PAUSE | - RemoteControlClient.FLAG_KEY_MEDIA_NEXT | - RemoteControlClient.FLAG_KEY_MEDIA_STOP); + RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE| + RemoteControlClient.FLAG_KEY_MEDIA_NEXT); // Update the remote controls mRemoteControlClientCompat.editMetadata(true) - .putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, track.getCreator()) + .putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, track.getCreator()) .putString(MediaMetadataRetriever.METADATA_KEY_TITLE, track.getTitle()) .putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, track.getDuration()) @@ -1279,7 +1277,7 @@ public void onPostExecute(Boolean result) { // Update the remote controls try { mRemoteControlClientCompat.editMetadata(true) - .putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, currentTrack.getCreator()) + .putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, currentTrack.getCreator()) .putString(MediaMetadataRetriever.METADATA_KEY_TITLE, currentTrack.getTitle()) .putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, currentTrack.getDuration())