Download Status entries for Feeds are now created properly
This commit is contained in:
parent
fb2f19459a
commit
119f718bcf
|
@ -281,11 +281,12 @@ public class DownloadService extends Service {
|
||||||
requester.removeDownload(feed);
|
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));
|
long statusId = manager.addDownloadStatus(service, new DownloadStatus(feed, 0, true));
|
||||||
sendDownloadHandledIntent(feed.getDownloadId(), statusId, hasImage, imageId);
|
sendDownloadHandledIntent(feed.getDownloadId(), statusId, hasImage, imageId);
|
||||||
feed.setDownloadId(0);
|
feed.setDownloadId(0);
|
||||||
// Save information of feed in DB
|
manager.setFeed(service, feed);
|
||||||
manager.updateFeed(service, feed);
|
|
||||||
queryDownloads();
|
queryDownloads();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue