From 0c25d71ece4be5dfe98a6ad82dfb74115c46f2ec Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 6 May 2014 19:15:27 -0700 Subject: #339 Fix another case for wrong next playing after swap --- src/github/daneren2005/dsub/service/DownloadService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index eae4fda1..298b5a40 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1522,10 +1522,9 @@ public class DownloadService extends Service { to = 0; } - int currentPlayingIndex = getCurrentPlayingIndex(); DownloadFile movedSong = list.remove(from); list.add(to, movedSong); - this.currentPlayingIndex = downloadList.indexOf(currentPlaying); + currentPlayingIndex = downloadList.indexOf(currentPlaying); if(remoteState != RemoteControlState.LOCAL && mainList) { updateJukeboxPlaylist(); } else if(mainList && (movedSong == nextPlaying || movedSong == currentPlaying || (currentPlayingIndex + 1) == to)) { -- cgit v1.2.3