Browse Source

Fixed new item RSS item counter when no torrents are available in the RSS feed (after filtering on include/exclude filter). Fixes #352.

pull/424/head
Eric Kok 7 years ago
parent
commit
9667e3f763
  1. 1
      app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java

1
app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java

@ -76,6 +76,7 @@ public class RssfeedLoader {
} }
} else { } else {
// Use the url of the last RSS item the last time the feed was viewed by the user to count new items // Use the url of the last RSS item the last time the feed was viewed by the user to count new items
newCount = 0;
boolean isNew = true; boolean isNew = true;
for (Item item : channel.getItems()) { for (Item item : channel.getItems()) {
if (item.getTheLink() != null && setting.getLastViewedItemUrl() != null && item.getTheLink().equals(setting.getLastViewedItemUrl())) { if (item.getTheLink() != null && setting.getLastViewedItemUrl() != null && item.getTheLink().equals(setting.getLastViewedItemUrl())) {

Loading…
Cancel
Save