aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-04-04 15:54:12 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-04-04 15:54:12 -0700
commitdca822d87af8ea8225e51b6699f3e8d4e9eeea0a (patch)
treee36c6ad1b63efb43d526a1da2dc9e87ce93eb2e5 /src
parent0f47b82ed144a6c4e1b78e2ac0765efe7dc26a1a (diff)
downloaddsub-dca822d87af8ea8225e51b6699f3e8d4e9eeea0a.tar.gz
dsub-dca822d87af8ea8225e51b6699f3e8d4e9eeea0a.tar.bz2
dsub-dca822d87af8ea8225e51b6699f3e8d4e9eeea0a.zip
#277 Using cache option on pinned music unpins it
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java3
1 files changed, 3 insertions, 0 deletions
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++;