Hide waiting list if empty

This commit is contained in:
daniel oeh 2013-04-07 11:57:36 +02:00
parent 7fbd96ad45
commit 40ab4e415e
1 changed files with 7 additions and 2 deletions

View File

@ -209,7 +209,12 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {
@Override @Override
public int getGroupCount() { public int getGroupCount() {
// Hide 'unread items' group if empty
if (manager.getUnreadItemsSize(true) > 0) {
return 2; return 2;
} else {
return 1;
}
} }
@Override @Override