summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-10-31 22:14:41 +0100
committerByteHamster <info@bytehamster.com>2021-11-02 21:38:59 +0100
commit524e5c95fc20e9cc25bbe1012a287920fc6030bd (patch)
tree3d42db0acc390c663378b9b982168e617856a46a /app/src/main/java/de/danoeh/antennapod/adapter/actionbutton
parent345aad4148f133477e40c232a8e855dfd28e0654 (diff)
downloadAntennaPod-524e5c95fc20e9cc25bbe1012a287920fc6030bd.zip
Fix auto-download retry backoff
The new value never got stored in the database. Also, it only got increased by certain types of errors - all other errors could be retried indefinitely. Also added a unit test.
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter/actionbutton')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java
index dedf8e5e6..a2b0e98c3 100644
--- a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java
+++ b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/CancelDownloadActionButton.java
@@ -34,7 +34,7 @@ public class CancelDownloadActionButton extends ItemActionButton {
FeedMedia media = item.getMedia();
DownloadRequester.getInstance().cancelDownload(context, media);
if (UserPreferences.isEnableAutodownload()) {
- item.setAutoDownload(false);
+ item.disableAutoDownload();
DBWriter.setFeedItem(item);
}
}