aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-28 17:49:24 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-28 17:49:24 -0700
commit5a9a0a530e8d643ad4f7de98cddc839700448616 (patch)
tree2bb704266d99c3f5d11ea7067e60b36e9ec38692
parent7d03be9c2630b97d7ab09de51a430dc39405b81d (diff)
downloaddsub-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.java2
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)) {