From 9decf04ac355765ea74c3cbcb5c38c8a62ab552e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Nov 2011 09:14:52 +0300 Subject: [PATCH] show basic virtual feeds --- src/org/fox/ttrss/FeedsFragment.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/org/fox/ttrss/FeedsFragment.java b/src/org/fox/ttrss/FeedsFragment.java index fbba2fce..de277e76 100644 --- a/src/org/fox/ttrss/FeedsFragment.java +++ b/src/org/fox/ttrss/FeedsFragment.java @@ -58,7 +58,10 @@ public class FeedsFragment extends Fragment implements OnItemClickListener { @Override public int compare(Feed a, Feed b) { - return a.title.compareTo(b.title); + if (a.id >= 0 && b.id >= 0) + return a.title.compareTo(b.title); + else + return a.id - b.id; } } @@ -141,7 +144,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener { { put("op", "getFeeds"); put("sid", sessionId); - put("cat_id", "-3"); + put("cat_id", "-4"); if (unreadOnly) { put("unread_only", String.valueOf(unreadOnly)); } @@ -192,8 +195,9 @@ public class FeedsFragment extends Fragment implements OnItemClickListener { m_feeds.clear(); - for (Feed f : feeds) - m_feeds.add(f); + for (Feed f : feeds) + if (f.id > -10) // skip labels for now + m_feeds.add(f); sortFeeds();