From 119f718bcf0fa5e31747735f26cceb8c6ea1ce36 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sat, 23 Jun 2012 11:14:35 +0200 Subject: [PATCH] Download Status entries for Feeds are now created properly --- src/de/podfetcher/service/DownloadService.java | 7 ++++--- 1 file 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(); }