aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
-rw-r--r--src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java4
-rw-r--r--src/github/daneren2005/dsub/util/ShufflePlayBuffer.java1
3 files changed, 4 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index e1891a6d..4fdc4dc9 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1564,7 +1564,7 @@ public class DownloadService extends Service {
setNextPlayerState(IDLE);
}
- protected synchronized void checkDownloads() {
+ public synchronized void checkDownloads() {
if (!Util.isExternalStoragePresent() || !lifecycleSupport.isExternalStorageAvailable()) {
return;
}
diff --git a/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java b/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java
index c08dab2e..905277e9 100644
--- a/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java
+++ b/src/github/daneren2005/dsub/service/sync/SubsonicSyncAdapter.java
@@ -109,7 +109,7 @@ public class SubsonicSyncAdapter extends AbstractThreadedSyncAdapter {
for(int i = 1; i <= servers; i++) {
try {
if(isValidServer(context, i)) {
- tagBrowsing = Util.isTagBrowsing(context, instance);
+ tagBrowsing = Util.isTagBrowsing(context, i);
musicService.setInstance(i);
onExecuteSync(context, i);
}
@@ -152,7 +152,7 @@ public class SubsonicSyncAdapter extends AbstractThreadedSyncAdapter {
contents = musicService.getAlbum(id, name, true, context, null);
}
} else {
- contents = musicService.getMusicDirectory(id name, true, context, null);
+ contents = musicService.getMusicDirectory(id, name, true, context, null);
}
if(downloadRecursively(paths, contents, context, save)) {
diff --git a/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java b/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java
index de1be13a..7554637c 100644
--- a/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java
+++ b/src/github/daneren2005/dsub/util/ShufflePlayBuffer.java
@@ -29,6 +29,7 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import github.daneren2005.dsub.domain.MusicDirectory;
+import github.daneren2005.dsub.service.DownloadService;
import github.daneren2005.dsub.service.MusicService;
import github.daneren2005.dsub.service.MusicServiceFactory;
import github.daneren2005.dsub.util.FileUtil;