From 1d629c7fa293feb081393102b2aa7c54ea5587fe Mon Sep 17 00:00:00 2001 From: Christopher Eby Date: Sun, 21 Mar 2010 17:41:45 -0500 Subject: [PATCH] Update the notification properly when the song changes Clearly I don't look at the notification very often :) --- src/org/kreed/vanilla/PlaybackService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/kreed/vanilla/PlaybackService.java b/src/org/kreed/vanilla/PlaybackService.java index 70da7b93..91bd1dfc 100644 --- a/src/org/kreed/vanilla/PlaybackService.java +++ b/src/org/kreed/vanilla/PlaybackService.java @@ -451,10 +451,11 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On int oldState = mState; mState = state; + Song lastBroadcast = mLastSongBroadcast; broadcastChange(oldState, state, song); boolean cancelNotification; - if (state != oldState || song != mLastSongBroadcast) + if (state != oldState || song != lastBroadcast) cancelNotification = updateNotification(song); else cancelNotification = false;