show basic virtual feeds
This commit is contained in:
parent
e5117944fb
commit
9decf04ac3
@ -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) {
|
||||||
|
if (a.id >= 0 && b.id >= 0)
|
||||||
return a.title.compareTo(b.title);
|
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));
|
||||||
}
|
}
|
||||||
@ -193,6 +196,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener {
|
|||||||
m_feeds.clear();
|
m_feeds.clear();
|
||||||
|
|
||||||
for (Feed f : feeds)
|
for (Feed f : feeds)
|
||||||
|
if (f.id > -10) // skip labels for now
|
||||||
m_feeds.add(f);
|
m_feeds.add(f);
|
||||||
|
|
||||||
sortFeeds();
|
sortFeeds();
|
||||||
|
Loading…
Reference in New Issue
Block a user