From 70f6e22be7a175386ae4c4c1d92c4f6cf5d7a834 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Wed, 27 Nov 2019 18:33:03 -0500 Subject: [PATCH] Restart track when playlist has one song and FF pressed --- .../java/net/nullsum/audinaut/service/DownloadService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/net/nullsum/audinaut/service/DownloadService.java b/app/src/main/java/net/nullsum/audinaut/service/DownloadService.java index 9231f71..8228f93 100644 --- a/app/src/main/java/net/nullsum/audinaut/service/DownloadService.java +++ b/app/src/main/java/net/nullsum/audinaut/service/DownloadService.java @@ -949,7 +949,7 @@ public class DownloadService extends Service { public synchronized void next(boolean forceStart) { // If only one song, just skip within song - if (size() == 1 || (currentPlaying != null && !currentPlaying.isSong())) { + if (currentPlaying != null && !currentPlaying.isSong()) { fastForward(); return; } else if (playerState == PREPARING || playerState == PREPARED) { @@ -958,10 +958,6 @@ public class DownloadService extends Service { int index = getCurrentPlayingIndex(); int nextPlayingIndex = getNextPlayingIndex(); - // Make sure to actually go to next when repeat song is on - if (index == nextPlayingIndex) { - nextPlayingIndex++; - } if (index != -1 && nextPlayingIndex < size()) { play(nextPlayingIndex, playerState != PAUSED && playerState != STOPPED && playerState != IDLE || forceStart); }