diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-02-20 23:15:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 23:15:56 +0100 |
commit | a5d48647768dd498158f82f03f645245f086f867 (patch) | |
tree | 7003a02ae6ce53b8853904d7509c81ee76aced0a /net/download | |
parent | c98194f519c66e5af1575b1c6ffac5af16594141 (diff) | |
download | AntennaPod-a5d48647768dd498158f82f03f645245f086f867.zip |
Add retry button to download failed notifications (#6333)
Diffstat (limited to 'net/download')
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) { } |