show basic virtual feeds

This commit is contained in:
Andrew Dolgov 2011-11-28 09:14:52 +03:00
parent e5117944fb
commit 9decf04ac3

View File

@ -58,7 +58,10 @@ public class FeedsFragment extends Fragment implements OnItemClickListener {
@Override @Override
public int compare(Feed a, Feed b) { 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("op", "getFeeds");
put("sid", sessionId); put("sid", sessionId);
put("cat_id", "-3"); put("cat_id", "-4");
if (unreadOnly) { if (unreadOnly) {
put("unread_only", String.valueOf(unreadOnly)); put("unread_only", String.valueOf(unreadOnly));
} }
@ -192,8 +195,9 @@ public class FeedsFragment extends Fragment implements OnItemClickListener {
m_feeds.clear(); m_feeds.clear();
for (Feed f : feeds) for (Feed f : feeds)
m_feeds.add(f); if (f.id > -10) // skip labels for now
m_feeds.add(f);
sortFeeds(); sortFeeds();