From dca822d87af8ea8225e51b6699f3e8d4e9eeea0a Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Fri, 4 Apr 2014 15:54:12 -0700 Subject: #277 Using cache option on pinned music unpins it --- src/github/daneren2005/dsub/service/DownloadService.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/github') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 335e7812..5766e25c 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -355,6 +355,9 @@ public class DownloadService extends Service { if(!downloadFile.isWorkDone() || (downloadFile.shouldSave() && !downloadFile.isSaved())) { // Only add to list if there is work to be done backgroundDownloadList.add(downloadFile); + } else if(downloadFile.isSaved() && !save) { + // Quickly unpin song instead of adding it to work to be done + downloadFile.unpin(); } } revision++; -- cgit v1.2.3