Ignore new episodes action for non-subscribed feeds (#7335)
This commit is contained in:
parent
895987e5aa
commit
251b17c7df
|
@ -182,10 +182,11 @@ public abstract class FeedDatabaseWriter {
|
||||||
savedFeed.getItems().add(idx, item);
|
savedFeed.getItems().add(idx, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.getPubDate() == null
|
boolean shouldPerformNewEpisodesAction = item.getPubDate() == null
|
||||||
|| priorMostRecentDate == null
|
|| priorMostRecentDate == null
|
||||||
|| priorMostRecentDate.before(item.getPubDate())
|
|| 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()
|
Log.d(TAG, "Performing new episode action for item published on " + item.getPubDate()
|
||||||
+ ", prior most recent date = " + priorMostRecentDate);
|
+ ", prior most recent date = " + priorMostRecentDate);
|
||||||
FeedPreferences.NewEpisodesAction action = savedFeed.getPreferences().getNewEpisodesAction();
|
FeedPreferences.NewEpisodesAction action = savedFeed.getPreferences().getNewEpisodesAction();
|
||||||
|
|
Loading…
Reference in New Issue