diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-26 21:15:03 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-26 21:15:03 -0700 |
commit | 2f46ed0305791d4ab38ba51087d5602ed10280b6 (patch) | |
tree | a29ce87cc107c242d2f6dfd6484b49884f0a9edd | |
parent | d7c91c48c7cfe47ca40488372f5952f31f74734e (diff) | |
download | dsub-2f46ed0305791d4ab38ba51087d5602ed10280b6.tar.gz dsub-2f46ed0305791d4ab38ba51087d5602ed10280b6.tar.bz2 dsub-2f46ed0305791d4ab38ba51087d5602ed10280b6.zip |
Fixed caching not updating view as its downloading
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 69bd766d..8343ce9a 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -353,6 +353,11 @@ public class DownloadServiceImpl extends Service implements DownloadService { return downloadFile; } } + for (DownloadFile downloadFile : backgroundDownloadList) { + if (downloadFile.getSong().equals(song)) { + return downloadFile; + } + } DownloadFile downloadFile = downloadFileCache.get(song); if (downloadFile == null) { |