From 3ba6075d9b06484f8ddafceb7578d4788e3d01fa Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Mon, 30 Jun 2014 13:11:54 -0700 Subject: Fix clearing current playing when downloading in background --- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 0a13e16e..a998c655 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -593,7 +593,7 @@ public class DownloadService extends Service { reset(); downloadList.clear(); revision++; - if (currentDownloading != null) { + if (currentDownloading != null && !backgroundDownloadList.contains(currentDownloading)) { currentDownloading.cancelDownload(); currentDownloading = null; } -- cgit v1.2.3