Ignore new episodes action for non-subscribed feeds (#7335)

This commit is contained in:
ByteHamster 2024-08-24 09:37:47 +02:00 committed by GitHub
parent 895987e5aa
commit 251b17c7df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -182,10 +182,11 @@ public abstract class FeedDatabaseWriter {
savedFeed.getItems().add(idx, item);
}
if (item.getPubDate() == null
boolean shouldPerformNewEpisodesAction = item.getPubDate() == null
|| priorMostRecentDate == null
|| priorMostRecentDate.before(item.getPubDate())
|| priorMostRecentDate.equals(item.getPubDate())) {
|| priorMostRecentDate.equals(item.getPubDate());
if (savedFeed.getState() == Feed.STATE_SUBSCRIBED && shouldPerformNewEpisodesAction) {
Log.d(TAG, "Performing new episode action for item published on " + item.getPubDate()
+ ", prior most recent date = " + priorMostRecentDate);
FeedPreferences.NewEpisodesAction action = savedFeed.getPreferences().getNewEpisodesAction();