From 9667e3f76375f0de13a85acc2dd07247ba5f94e9 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Mon, 19 Feb 2018 15:39:43 +0100 Subject: [PATCH] Fixed new item RSS item counter when no torrents are available in the RSS feed (after filtering on include/exclude filter). Fixes #352. --- app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java b/app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java index 3610cf8e..8d777a79 100644 --- a/app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java +++ b/app/src/main/java/org/transdroid/core/gui/rss/RssfeedLoader.java @@ -76,6 +76,7 @@ public class RssfeedLoader { } } else { // 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; for (Item item : channel.getItems()) { if (item.getTheLink() != null && setting.getLastViewedItemUrl() != null && item.getTheLink().equals(setting.getLastViewedItemUrl())) {