summaryrefslogtreecommitdiff
path: root/net/download
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-02-20 23:15:56 +0100
committerGitHub <noreply@github.com>2023-02-20 23:15:56 +0100
commita5d48647768dd498158f82f03f645245f086f867 (patch)
tree7003a02ae6ce53b8853904d7509c81ee76aced0a /net/download
parentc98194f519c66e5af1575b1c6ffac5af16594141 (diff)
downloadAntennaPod-a5d48647768dd498158f82f03f645245f086f867.zip
Add retry button to download failed notifications (#6333)
Diffstat (limited to 'net/download')
-rw-r--r--net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterface.java3
-rw-r--r--net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterfaceStub.java5
2 files changed, 8 insertions, 0 deletions
diff --git a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterface.java b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterface.java
index 54987a83e..b5d0cd991 100644
--- a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterface.java
+++ b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterface.java
@@ -1,6 +1,7 @@
package de.danoeh.antennapod.net.download.serviceinterface;
import android.content.Context;
+import android.content.Intent;
public abstract class DownloadServiceInterface {
private static DownloadServiceInterface impl;
@@ -15,6 +16,8 @@ public abstract class DownloadServiceInterface {
public abstract void download(Context context, boolean cleanupMedia, DownloadRequest... requests);
+ public abstract Intent makeDownloadIntent(Context context, boolean cleanupMedia, DownloadRequest... requests);
+
public abstract void refreshAllFeeds(Context context, boolean initiatedByUser);
public abstract void cancel(Context context, String url);
diff --git a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterfaceStub.java b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterfaceStub.java
index 251c59c61..947746485 100644
--- a/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterfaceStub.java
+++ b/net/download/service-interface/src/main/java/de/danoeh/antennapod/net/download/serviceinterface/DownloadServiceInterfaceStub.java
@@ -1,12 +1,17 @@
package de.danoeh.antennapod.net.download.serviceinterface;
import android.content.Context;
+import android.content.Intent;
public class DownloadServiceInterfaceStub extends DownloadServiceInterface {
public void download(Context context, boolean cleanupMedia, DownloadRequest... requests) {
}
+ public Intent makeDownloadIntent(Context context, boolean cleanupMedia, DownloadRequest... requests) {
+ return null;
+ }
+
public void refreshAllFeeds(Context context, boolean initiatedByUser) {
}