From 4f7f49e1e714ce41320fff569272a1423198b2f3 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 14 Mar 2023 21:03:45 +0100 Subject: Move feed download to worker (#6375) Feed downloads are now independent from episode downloads. This makes it easier to use WorkManager for refreshing. Also, it will make it easier to add different refresh intervals in the future. --- .../antennapod/net/download/serviceinterface/DownloadRequest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'net/download') diff --git a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java index e5c6662eb..9f9737edc 100644 --- a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java +++ b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadRequest.java @@ -263,7 +263,7 @@ public class DownloadRequest implements Parcelable { public static class Builder { private final String destination; - private final String source; + private String source; private final String title; private String username; private String password; @@ -296,6 +296,10 @@ public class DownloadRequest implements Parcelable { return this; } + public void setSource(String source) { + this.source = source; + } + public void setForce(boolean force) { if (force) { lastModified = null; -- cgit v1.2.3