aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-11 20:04:23 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-11 20:04:23 -0700
commit7e7ff0696168a9a078f64742a129c53987f0ed71 (patch)
treed4e944142d267fff8dd8e666e8f3096e7b2d3c97
parent90c611ac3aa60d8a6773598feba56f30ec1b8657 (diff)
downloaddsub-7e7ff0696168a9a078f64742a129c53987f0ed71.tar.gz
dsub-7e7ff0696168a9a078f64742a129c53987f0ed71.tar.bz2
dsub-7e7ff0696168a9a078f64742a129c53987f0ed71.zip
Update revision on change of backgroundDownloadList as well
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java3
1 files changed, 2 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 664754b1..7748cfa7 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -309,6 +309,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
DownloadFile downloadFile = new DownloadFile(this, song, save);
backgroundDownloadList.add(downloadFile);
}
+ revision++;
checkDownloads();
lifecycleSupport.serializeDownloadQueue();
@@ -1347,7 +1348,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
DownloadFile downloadFile = backgroundDownloadList.get(i);
if(downloadFile.isWorkDone() && (!downloadFile.shouldSave() || downloadFile.isSaved())) {
// Don't need to keep list like active song list
- backgroundDownloadList.remove(downloadFile);
+ backgroundDownloadList.remove(i);
i--;
} else {
currentDownloading = downloadFile;