add the actual song repetition function
This commit is contained in:
parent
96b5c6f49b
commit
8df3cc5956
1 changed files with 5 additions and 1 deletions
|
@ -469,7 +469,11 @@ public class MusicService extends Service
|
|||
|
||||
@Override
|
||||
public void onCompletion(MediaPlayer mp) {
|
||||
if (mPlayer.getCurrentPosition() > 0) {
|
||||
if (mConfig.getRepeatSong()) {
|
||||
mPlayer.seekTo(0);
|
||||
mPlayer.start();
|
||||
setupNotification();
|
||||
} else if (mPlayer.getCurrentPosition() > 0) {
|
||||
mPlayer.reset();
|
||||
playNextSong();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue