Fix for Bug 714 "Mark above as read"

This commit is contained in:
tuxmobil 2013-10-15 11:04:00 +02:00
parent 84cfc9a9fe
commit 1a39cb0f50

View File

@ -212,12 +212,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
ArticleList tmp = new ArticleList(); ArticleList tmp = new ArticleList();
for (Article a : articles) { for (Article a : articles) {
if (a.unread) { if (a.unread) {
if (article.id == a.id)
break;
a.unread = false; a.unread = false;
tmp.add(a); tmp.add(a);
} }
if (article.id == a.id)
break;
} }
if (tmp.size() > 0) { if (tmp.size() > 0) {
m_activity.toggleArticlesUnread(tmp); m_activity.toggleArticlesUnread(tmp);