aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-09-26 21:39:46 -0700
committerScott Jackson <daneren2005@gmail.com>2012-09-26 21:39:46 -0700
commit8f96d43e5bd1648e363c4cf22eacb1d6961ce699 (patch)
tree72ad81479ec6dd23a031653764b850a0c600df09 /subsonic-android/src
parentfbbbc3831fcfd7141ad7fa77f0fcbe3a8f089caa (diff)
downloaddsub-8f96d43e5bd1648e363c4cf22eacb1d6961ce699.tar.gz
dsub-8f96d43e5bd1648e363c4cf22eacb1d6961ce699.tar.bz2
dsub-8f96d43e5bd1648e363c4cf22eacb1d6961ce699.zip
Fixed Download Service not downloading non-pinned background downloads
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 8343ce9a..63fa3fb5 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -856,7 +856,6 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
protected synchronized void checkDownloads() {
- Log.d(TAG, "Check Download");
if (!Util.isExternalStoragePresent() || !lifecycleSupport.isExternalStorageAvailable()) {
return;
}
@@ -887,7 +886,6 @@ public class DownloadServiceImpl extends Service implements DownloadService {
// Find a suitable target for download.
else if (currentDownloading == null || currentDownloading.isWorkDone() || currentDownloading.isFailed() && !downloadList.isEmpty()) {
- Log.d(TAG, "Download Foreground");
int n = size();
if (n == 0) {
return;
@@ -915,12 +913,12 @@ public class DownloadServiceImpl extends Service implements DownloadService {
// Log.d(TAG, "i: " + i + "\nPreloaded: " + preloaded + "\nSize: " + n);
if((i + 1 + preloaded == n) && !backgroundDownloadList.isEmpty()) {
- Log.d(TAG, "Download Background");
+ // Log.d(TAG, "Download Background");
for(DownloadFile downloadFile : backgroundDownloadList) {
if(downloadFile.isWorkDone()) {
// Don't need to keep list like active song list
backgroundDownloadList.remove(downloadFile);
- } else if(downloadFile.shouldSave()) {
+ } else {
currentDownloading = downloadFile;
currentDownloading.download();
cleanupCandidates.add(currentDownloading);