diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-23 18:06:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 18:06:02 +0100 |
commit | a065d3fc338371d1e5f0782bb99a847cc5a9ea93 (patch) | |
tree | f35c487317c9b7979c02f3839dfab77681bc6de1 /core/src/main | |
parent | f6b45e7162ce3909cb2b04a4124e71aad22240c6 (diff) | |
download | AntennaPod-a065d3fc338371d1e5f0782bb99a847cc5a9ea93.zip |
Remove check for updated attributes, just update them (#7018)
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java index 52307912a..1fb0991dd 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBTasks.java @@ -216,18 +216,12 @@ public final class DBTasks { Collections.sort(newFeed.getItems(), new FeedItemPubdateComparator()); if (newFeed.getPageNr() == savedFeed.getPageNr()) { - if (savedFeed.compareWithOther(newFeed)) { - Log.d(TAG, "Feed has updated attribute values. Updating old feed's attributes"); - savedFeed.updateFromOther(newFeed); - } + savedFeed.updateFromOther(newFeed); + savedFeed.getPreferences().updateFromOther(newFeed.getPreferences()); } else { Log.d(TAG, "New feed has a higher page number."); savedFeed.setNextPageLink(newFeed.getNextPageLink()); } - if (savedFeed.getPreferences().compareWithOther(newFeed.getPreferences())) { - Log.d(TAG, "Feed has updated preferences. Updating old feed's preferences"); - savedFeed.getPreferences().updateFromOther(newFeed.getPreferences()); - } // get the most recent date now, before we start changing the list FeedItem priorMostRecent = savedFeed.getMostRecentItem(); |