From 7e7ff0696168a9a078f64742a129c53987f0ed71 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 11 Jun 2013 20:04:23 -0700 Subject: Update revision on change of backgroundDownloadList as well --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3