From e840ebbc96d080b0d0ef278ba74461dbd3b0a5c2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Jan 2014 16:03:38 +0400 Subject: [PATCH] fix catchup_above to behave as the desktop version (not including selected article) --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/HeadlinesFragment.java | 6 +++--- src/org/fox/ttrss/OnlineActivity.java | 7 +++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 73ef10ea..b140ace3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="230" + android:versionName="1.34" > 0) { m_activity.toggleArticlesUnread(tmp); diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index 1169c9c9..c082e797 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -999,10 +999,13 @@ public class OnlineActivity extends CommonActivity { ArticleList articles = hf.getAllArticles(); ArticleList tmp = new ArticleList(); for (Article a : articles) { - a.unread = false; - tmp.add(a); if (article.id == a.id) break; + + if (a.unread) { + a.unread = false; + tmp.add(a); + } } if (tmp.size() > 0) { toggleArticlesUnread(tmp);