From 2f46ed0305791d4ab38ba51087d5602ed10280b6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 26 Sep 2012 21:15:03 -0700 Subject: Fixed caching not updating view as its downloading --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- cgit v1.2.3