Load saved song position
This commit is contained in:
parent
8617a7c7c6
commit
d0ee5e8676
@ -382,9 +382,6 @@ public final class PlaybackService extends Service implements Handler.Callback,
|
|||||||
|
|
||||||
setCurrentSong(0);
|
setCurrentSong(0);
|
||||||
|
|
||||||
if (mPendingSeek != 0)
|
|
||||||
mMediaPlayer.seekTo(mPendingSeek);
|
|
||||||
|
|
||||||
mHandler.sendEmptyMessage(POST_CREATE);
|
mHandler.sendEmptyMessage(POST_CREATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -637,6 +634,10 @@ public final class PlaybackService extends Service implements Handler.Callback,
|
|||||||
if (!mMediaPlayerInitialized)
|
if (!mMediaPlayerInitialized)
|
||||||
mMediaPlayerInitialized = true;
|
mMediaPlayerInitialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mPendingSeek != 0)
|
||||||
|
mMediaPlayer.seekTo(mPendingSeek);
|
||||||
|
|
||||||
if ((mState & FLAG_PLAYING) != 0)
|
if ((mState & FLAG_PLAYING) != 0)
|
||||||
mMediaPlayer.start();
|
mMediaPlayer.start();
|
||||||
updateState(mState & ~FLAG_ERROR);
|
updateState(mState & ~FLAG_ERROR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user