aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 66295d5e..f4edb004 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1521,10 +1521,11 @@ public class DownloadService extends Service {
int currentPlayingIndex = getCurrentPlayingIndex();
DownloadFile movedSong = list.remove(from);
list.add(to, movedSong);
+ currentPlayingIndex = downloadList.indexOf(currentPlaying);
if(remoteState != RemoteControlState.LOCAL && mainList) {
updateJukeboxPlaylist();
- } else if(mainList && (movedSong == nextPlaying || (currentPlayingIndex + 1) == to)) {
- // Moving next playing or moving a song to be next playing
+ } else if(mainList && (movedSong == nextPlaying || movedSong == currentPlaying || (currentPlayingIndex + 1) == to)) {
+ // Moving next playing, current playing, or moving a song to be next playing
setNextPlaying();
}
}