mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Added title attribute to every DownloadStatus constructor
This commit is contained in:
@ -42,8 +42,9 @@ public class DownloadStatus {
|
|||||||
protected int statusMsg;
|
protected int statusMsg;
|
||||||
protected boolean done;
|
protected boolean done;
|
||||||
|
|
||||||
public DownloadStatus(FeedFile feedfile) {
|
public DownloadStatus(FeedFile feedfile, String title) {
|
||||||
this.feedfile = feedfile;
|
this.feedfile = feedfile;
|
||||||
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Constructor for restoring Download status entries from DB. */
|
/** Constructor for restoring Download status entries from DB. */
|
||||||
|
|||||||
@ -281,7 +281,7 @@ public class DownloadService extends Service {
|
|||||||
FeedFile feedfile = requester.getDownload(request.source);
|
FeedFile feedfile = requester.getDownload(request.source);
|
||||||
if (feedfile != null) {
|
if (feedfile != null) {
|
||||||
|
|
||||||
DownloadStatus status = new DownloadStatus(feedfile);
|
DownloadStatus status = new DownloadStatus(feedfile, feedfile.getHumanReadableIdentifier());
|
||||||
Downloader downloader = getDownloader(status);
|
Downloader downloader = getDownloader(status);
|
||||||
if (downloader != null) {
|
if (downloader != null) {
|
||||||
downloads.add(downloader);
|
downloads.add(downloader);
|
||||||
|
|||||||
Reference in New Issue
Block a user