Skip to content

Commit

Permalink
Make the artist name display correctly on the ICS/JB lock screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Steele committed Jun 29, 2012
1 parent 9de9774 commit 8362fa3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/src/fm/last/android/player/RadioPlayerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 8362fa3

Please sign in to comment.