aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-20 13:48:07 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-20 13:48:07 -0700
commit5a8417a276688cfb1fcfc1053c4154e026c4c360 (patch)
treed346637f00bb3b7041de9614769c8db05bb0ed79 /src/github
parent55c60d0abc65c7a333cdc5f1b80ac9ea37a29678 (diff)
downloaddsub-5a8417a276688cfb1fcfc1053c4154e026c4c360.tar.gz
dsub-5a8417a276688cfb1fcfc1053c4154e026c4c360.tar.bz2
dsub-5a8417a276688cfb1fcfc1053c4154e026c4c360.zip
Add index to download method to start from different song
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 81249660..a813e724 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -295,9 +295,9 @@ public class DownloadService extends Service {
}
public synchronized void download(List<MusicDirectory.Entry> songs, boolean save, boolean autoplay, boolean playNext, boolean shuffle) {
- download(songs, save, autoplay, playNext, shuffle, 0);
+ download(songs, save, autoplay, playNext, shuffle, 0, 0);
}
- public synchronized void download(List<MusicDirectory.Entry> songs, boolean save, boolean autoplay, boolean playNext, boolean shuffle, int position) {
+ public synchronized void download(List<MusicDirectory.Entry> songs, boolean save, boolean autoplay, boolean playNext, boolean shuffle, int index, int position) {
setShufflePlayEnabled(false);
int offset = 1;
@@ -336,7 +336,7 @@ public class DownloadService extends Service {
}
if (autoplay) {
- play(0, true, position);
+ play(index, true, position);
} else {
if (currentPlaying == null) {
currentPlaying = downloadList.get(0);