Repeat one tweaks

This commit is contained in:
Andrew Rabert 2019-12-12 23:36:03 -05:00
parent c0ee2d908e
commit 93658f32d3
1 changed files with 3 additions and 1 deletions

View File

@ -950,7 +950,6 @@ public class DownloadService extends Service {
public synchronized void next(boolean forceStart) {
// If only one song, just skip within song
if (currentPlaying != null && !currentPlaying.isSong()) {
fastForward();
return;
} else if (playerState == PREPARING || playerState == PREPARED) {
return;
@ -958,6 +957,9 @@ public class DownloadService extends Service {
int index = getCurrentPlayingIndex();
int nextPlayingIndex = getNextPlayingIndex();
if (index == nextPlayingIndex && size() > 1) {
nextPlayingIndex++;
}
if (index != -1 && nextPlayingIndex < size()) {
play(nextPlayingIndex, playerState != PAUSED && playerState != STOPPED && playerState != IDLE || forceStart);
}