diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-06-11 20:04:23 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-06-11 20:04:23 -0700 |
commit | 7e7ff0696168a9a078f64742a129c53987f0ed71 (patch) | |
tree | d4e944142d267fff8dd8e666e8f3096e7b2d3c97 | |
parent | 90c611ac3aa60d8a6773598feba56f30ec1b8657 (diff) | |
download | dsub-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.java | 3 |
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; |