aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-05-19 19:51:52 -0700
committerScott Jackson <daneren2005@gmail.com>2014-05-19 19:51:52 -0700
commite05723218aa289bf2892b3f9edf999b859f18689 (patch)
tree213c3dadf38f48b096e3f795c8ef1f65817f76af /src
parentc395bfbdc91fa8d2f1bfbbd14bb767a833dcad19 (diff)
downloaddsub-e05723218aa289bf2892b3f9edf999b859f18689.tar.gz
dsub-e05723218aa289bf2892b3f9edf999b859f18689.tar.bz2
dsub-e05723218aa289bf2892b3f9edf999b859f18689.zip
Fix web commits
Diffstat (limited to 'src')
-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;