Hide waiting list if empty
This commit is contained in:
parent
7fbd96ad45
commit
40ab4e415e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue