Update the notification properly when the song changes
Clearly I don't look at the notification very often :)
This commit is contained in:
parent
f19927e97e
commit
1d629c7fa2
@ -451,10 +451,11 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
|
|||||||
int oldState = mState;
|
int oldState = mState;
|
||||||
mState = state;
|
mState = state;
|
||||||
|
|
||||||
|
Song lastBroadcast = mLastSongBroadcast;
|
||||||
broadcastChange(oldState, state, song);
|
broadcastChange(oldState, state, song);
|
||||||
|
|
||||||
boolean cancelNotification;
|
boolean cancelNotification;
|
||||||
if (state != oldState || song != mLastSongBroadcast)
|
if (state != oldState || song != lastBroadcast)
|
||||||
cancelNotification = updateNotification(song);
|
cancelNotification = updateNotification(song);
|
||||||
else
|
else
|
||||||
cancelNotification = false;
|
cancelNotification = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user