aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-09-28 20:30:31 -0700
committerScott Jackson <daneren2005@gmail.com>2012-09-28 20:30:31 -0700
commit5124419a58bd798c5250d46c1084f4c896e07212 (patch)
treee0e7402d6b4979e0a23b02edc1a297c206e5deac
parent67d527a4b2b5e298d0277d5e0177b9b797e74fbd (diff)
downloaddsub-5124419a58bd798c5250d46c1084f4c896e07212.tar.gz
dsub-5124419a58bd798c5250d46c1084f4c896e07212.tar.bz2
dsub-5124419a58bd798c5250d46c1084f4c896e07212.zip
Another fix for when to download background songs
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index cb7ea3e0..a2d63b5c 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -911,7 +911,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
i = (i + 1) % n;
} while (i != start);
- if((preloaded + 1 == n) && !backgroundDownloadList.isEmpty()) {
+ if((preloaded + 1 == n || preloaded >= Util.getPreloadCount(this)) && !backgroundDownloadList.isEmpty()) {
for(DownloadFile downloadFile : backgroundDownloadList) {
if(downloadFile.isWorkDone()) {
// Don't need to keep list like active song list