summaryrefslogtreecommitdiff
path: root/src/de/podfetcher
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-06-23 11:14:35 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-06-23 11:14:35 +0200
commit119f718bcf0fa5e31747735f26cceb8c6ea1ce36 (patch)
tree8da2282c0d081967949f589014708626a2ee45c1 /src/de/podfetcher
parentfb2f19459a439159b097e8def9739cb12d79f7c1 (diff)
downloadAntennaPod-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.java7
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();
}