Added title attribute to every DownloadStatus constructor

This commit is contained in:
daniel oeh 2012-09-20 19:06:02 +02:00
parent 82db128a66
commit 76e11c76b5
2 changed files with 3 additions and 2 deletions

View File

@ -42,8 +42,9 @@ public class DownloadStatus {
protected int statusMsg;
protected boolean done;
public DownloadStatus(FeedFile feedfile) {
public DownloadStatus(FeedFile feedfile, String title) {
this.feedfile = feedfile;
this.title = title;
}
/** Constructor for restoring Download status entries from DB. */

View File

@ -281,7 +281,7 @@ public class DownloadService extends Service {
FeedFile feedfile = requester.getDownload(request.source);
if (feedfile != null) {
DownloadStatus status = new DownloadStatus(feedfile);
DownloadStatus status = new DownloadStatus(feedfile, feedfile.getHumanReadableIdentifier());
Downloader downloader = getDownloader(status);
if (downloader != null) {
downloads.add(downloader);