diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-28 21:10:39 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-28 21:10:39 -0700 |
commit | 860f2c22802759701dd7c0ac2ff5ee83f1f153f5 (patch) | |
tree | 41a79bbb1f65578fd2a853fbb578994dbd15f9a4 | |
parent | 4f8f83cfbea3df536cda2590fe60c21626fda04e (diff) | |
download | dsub-860f2c22802759701dd7c0ac2ff5ee83f1f153f5.tar.gz dsub-860f2c22802759701dd7c0ac2ff5ee83f1f153f5.tar.bz2 dsub-860f2c22802759701dd7c0ac2ff5ee83f1f153f5.zip |
Fixed so songs which are in now playing list and being currently background downloaded show status updates
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |