Download Status entries for Feeds are now created properly

This commit is contained in:
daniel oeh 2012-06-23 11:14:35 +02:00
parent fb2f19459a
commit 119f718bcf
1 changed files with 4 additions and 3 deletions

View File

@ -281,11 +281,12 @@ public class DownloadService extends Service {
requester.removeDownload(feed);
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();
}