aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-09-28 21:10:39 -0700
committerScott Jackson <daneren2005@gmail.com>2012-09-28 21:10:39 -0700
commit860f2c22802759701dd7c0ac2ff5ee83f1f153f5 (patch)
tree41a79bbb1f65578fd2a853fbb578994dbd15f9a4 /subsonic-android/src
parent4f8f83cfbea3df536cda2590fe60c21626fda04e (diff)
downloaddsub-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
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java4
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;
}
}