add the actual song repetition function

This commit is contained in:
tibbi 2016-10-09 18:16:22 +02:00
parent 96b5c6f49b
commit 8df3cc5956

View file

@ -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();
}