summaryrefslogtreecommitdiff
path: root/app/src/androidTest
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/androidTest
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/androidTest')
-rw-r--r--app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java
index 5dd419412..7cae704b3 100644
--- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java
+++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java
@@ -146,7 +146,7 @@ public class PlaybackServiceTaskManagerTest {
FeedItem item = DBReader.getFeedItem(testItem.getId());
item.getMedia().setDownloaded(true);
item.getMedia().setFile_url("file://123");
- item.setAutoDownload(false);
+ item.disableAutoDownload();
DBWriter.setFeedMedia(item.getMedia()).get();
DBWriter.setFeedItem(item).get();