setCurrentSong on startup

Uhhh where did it go?
This commit is contained in:
Christopher Eby 2010-03-26 21:47:34 -05:00
parent a76ac9e7c1
commit 5528749b59

View File

@ -382,14 +382,18 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
mHandler = new MusicHandler();
int go = 0;
if (mPendingGo == 0)
mState |= FLAG_PLAYING;
else if (mPendingGo == 1)
go = 1;
setCurrentSong(go);
if (mPendingSeek != 0)
mMediaPlayer.seekTo(mPendingSeek);
sendBroadcast(new Intent(EVENT_LOADED));
if (mPendingGo != -1)
mHandler.sendMessage(mHandler.obtainMessage(GO, mPendingGo, 0));
mHandler.sendEmptyMessage(POST_CREATE);
Looper.loop();