From 5a9a0a530e8d643ad4f7de98cddc839700448616 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 28 Apr 2014 17:49:24 -0700 Subject: #339 Proper fix for current index not being updated --- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index f4edb004..d5a71207 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1521,7 +1521,7 @@ public class DownloadService extends Service { int currentPlayingIndex = getCurrentPlayingIndex(); DownloadFile movedSong = list.remove(from); list.add(to, movedSong); - currentPlayingIndex = downloadList.indexOf(currentPlaying); + this.currentPlayingIndex = downloadList.indexOf(currentPlaying); if(remoteState != RemoteControlState.LOCAL && mainList) { updateJukeboxPlaylist(); } else if(mainList && (movedSong == nextPlaying || movedSong == currentPlaying || (currentPlayingIndex + 1) == to)) { -- cgit v1.2.3