From 084b9c231744a5657a620087b4b560db38b66ab8 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 24 Mar 2024 17:57:00 +0100 Subject: Store last refresh attempt for feeds (#7022) --- .../antennapod/service/playback/PlaybackServiceMediaPlayerTest.java | 3 ++- .../antennapod/service/playback/PlaybackServiceTaskManagerTest.java | 3 ++- app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'app/src/androidTest') diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java index e8436a3a2..41e8c64d1 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java @@ -128,7 +128,8 @@ public class PlaybackServiceMediaPlayerTest { } private Playable writeTestPlayable(String downloadUrl, String fileUrl) { - Feed f = new Feed(0, null, "f", "l", "d", null, null, null, null, "i", null, null, "l", false); + Feed f = new Feed(0, null, "f", "l", "d", null, null, null, null, + "i", null, null, "l", System.currentTimeMillis()); FeedPreferences prefs = new FeedPreferences(f.getId(), false, FeedPreferences.AutoDeleteAction.NEVER, VolumeAdaptionSetting.OFF, FeedPreferences.NewEpisodesAction.NOTHING, null, null); f.setPreferences(prefs); 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 9f1fc2261..ea484faca 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 @@ -63,7 +63,8 @@ public class PlaybackServiceTaskManagerTest { private List writeTestQueue(String pref) { final int NUM_ITEMS = 10; - Feed f = new Feed(0, null, "title", "link", "d", null, null, null, null, "id", null, "null", "url", false); + Feed f = new Feed(0, null, "title", "link", "d", null, null, null, null, "id", + null, "null", "url", System.currentTimeMillis()); f.setItems(new ArrayList<>()); for (int i = 0; i < NUM_ITEMS; i++) { f.getItems().add(new FeedItem(0, pref + i, pref + i, "link", new Date(), FeedItem.PLAYED, f)); diff --git a/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java b/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java index 0202d9d48..979d527f6 100644 --- a/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java +++ b/app/src/androidTest/java/de/test/antennapod/ui/UITestUtils.java @@ -123,7 +123,7 @@ public class UITestUtils { for (int i = 0; i < NUM_FEEDS; i++) { Feed feed = new Feed(0, null, "Title " + i, "http://example.com/" + i, "Description of feed " + i, "http://example.com/pay/feed" + i, "author " + i, "en", Feed.TYPE_RSS2, "feed" + i, null, null, - "http://example.com/feed/src/" + i, false); + "http://example.com/feed/src/" + i, System.currentTimeMillis()); // create items List items = new ArrayList<>(); @@ -169,7 +169,6 @@ public class UITestUtils { List queue = new ArrayList<>(); for (Feed feed : hostedFeeds) { - feed.setDownloaded(true); if (downloadEpisodes) { for (FeedItem item : feed.getItems()) { if (item.hasMedia()) { -- cgit v1.2.3