{
// For all other filters, iterate until all articles are scanned, or
// the first visible is found.
for (int i = 0; !hasVisibleArticles && i < count; i++)
{
IArticle article = feed.getArticleAt(i);
if (!unreadOnly || !article.isRead())
{
// If read state match, see others
switch (filter)
{
case IFeedDisplayConstants.FILTER_PINNED:
hasVisibleArticles = article.isPinned();
break;
case IFeedDisplayConstants.FILTER_NEGATIVE:
hasVisibleArticles = article.isNegative();
break;
case IFeedDisplayConstants.FILTER_POSITIVE:
hasVisibleArticles = article.isPositive();
break;
case IFeedDisplayConstants.FILTER_NON_NEGATIVE:
hasVisibleArticles = !article.isNegative();
break;
}
}
}
}