aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-05-06 19:15:27 -0700
committerScott Jackson <daneren2005@gmail.com>2014-05-06 19:15:27 -0700
commit0c25d71ece4be5dfe98a6ad82dfb74115c46f2ec (patch)
tree5ba47b308e52565143b95fadb1bf5dbe9540086a
parentd080dcaef9bb8377bc882e0b5e750cf315cbc321 (diff)
downloaddsub-0c25d71ece4be5dfe98a6ad82dfb74115c46f2ec.tar.gz
dsub-0c25d71ece4be5dfe98a6ad82dfb74115c46f2ec.tar.bz2
dsub-0c25d71ece4be5dfe98a6ad82dfb74115c46f2ec.zip
#339 Fix another case for wrong next playing after swap
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java3
1 files changed, 1 insertions, 2 deletions
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)) {