diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-23 11:14:35 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-23 11:14:35 +0200 |
commit | 119f718bcf0fa5e31747735f26cceb8c6ea1ce36 (patch) | |
tree | 8da2282c0d081967949f589014708626a2ee45c1 /src/de/podfetcher | |
parent | fb2f19459a439159b097e8def9739cb12d79f7c1 (diff) | |
download | AntennaPod-119f718bcf0fa5e31747735f26cceb8c6ea1ce36.zip |
Download Status entries for Feeds are now created properly
Diffstat (limited to 'src/de/podfetcher')
-rw-r--r-- | src/de/podfetcher/service/DownloadService.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/de/podfetcher/service/DownloadService.java b/src/de/podfetcher/service/DownloadService.java index 51e77ba4c..79c9e5217 100644 --- a/src/de/podfetcher/service/DownloadService.java +++ b/src/de/podfetcher/service/DownloadService.java @@ -280,12 +280,13 @@ public class DownloadService extends Service { } requester.removeDownload(feed); - cleanup(); + cleanup(); + // Save information of feed in DB + manager.updateFeed(service, feed); long statusId = manager.addDownloadStatus(service, new DownloadStatus(feed, 0, true)); sendDownloadHandledIntent(feed.getDownloadId(), statusId, hasImage, imageId); feed.setDownloadId(0); - // Save information of feed in DB - manager.updateFeed(service, feed); + manager.setFeed(service, feed); queryDownloads(); } |