From ab6d909e03cb766647def7d76542adf83238ab69 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Tue, 10 Jul 2012 21:29:35 +0200 Subject: [PATCH] The first FeedItem was not properly marked as unread when a feed was added --- src/de/podfetcher/feed/FeedManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/podfetcher/feed/FeedManager.java b/src/de/podfetcher/feed/FeedManager.java index 86cb6e806..9a3ba7d68 100644 --- a/src/de/podfetcher/feed/FeedManager.java +++ b/src/de/podfetcher/feed/FeedManager.java @@ -268,8 +268,9 @@ public class FeedManager { "Found no existing Feed with title " + newFeed.getTitle() + ". Adding as new one."); // Add a new Feed - newFeed.getItems().get(0).read = false; addNewFeed(context, newFeed); + markItemRead(context, newFeed.getItems().get(0), false); + return newFeed; } else { Log.d(TAG, "Feed with title " + newFeed.getTitle()