From 860f2c22802759701dd7c0ac2ff5ee83f1f153f5 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 28 Sep 2012 21:10:39 -0700 Subject: Fixed so songs which are in now playing list and being currently background downloaded show status updates --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 +++- 1 file changed, 3 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 cf3e9556..64e71850 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -349,7 +349,9 @@ public class DownloadServiceImpl extends Service implements DownloadService { @Override public synchronized DownloadFile forSong(MusicDirectory.Entry song) { for (DownloadFile downloadFile : downloadList) { - if (downloadFile.getSong().equals(song)) { + if (downloadFile.getSong().equals(song) && + ((downloadFile.isDownloading() && !downloadFile.isDownloadCancelled() && downloadFile.getPartialFile().exists()) + || downloadFile.getCompleteFile().exists())) { return downloadFile; } } -- cgit v1.2.3