diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-28 17:49:24 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-28 17:49:24 -0700 |
commit | 5a9a0a530e8d643ad4f7de98cddc839700448616 (patch) | |
tree | 2bb704266d99c3f5d11ea7067e60b36e9ec38692 | |
parent | 7d03be9c2630b97d7ab09de51a430dc39405b81d (diff) | |
download | dsub-5a9a0a530e8d643ad4f7de98cddc839700448616.tar.gz dsub-5a9a0a530e8d643ad4f7de98cddc839700448616.tar.bz2 dsub-5a9a0a530e8d643ad4f7de98cddc839700448616.zip |
#339 Proper fix for current index not being updated
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |