Headers displayed wrong number of episodes in some cases
This commit is contained in:
parent
481d3ea24a
commit
941202f659
|
@ -201,12 +201,12 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {
|
||||||
if (groupPosition == 0) {
|
if (groupPosition == 0) {
|
||||||
headerString = context.getString(R.string.queue_label);
|
headerString = context.getString(R.string.queue_label);
|
||||||
if (!queueItems.isEmpty()) {
|
if (!queueItems.isEmpty()) {
|
||||||
headerString += " (" + queueItems.size() + ")";
|
headerString += " (" + getChildrenCount(GROUP_POS_QUEUE) + ")";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
headerString = context.getString(R.string.new_label);
|
headerString = context.getString(R.string.new_label);
|
||||||
if (!unreadItems.isEmpty()) {
|
if (!unreadItems.isEmpty()) {
|
||||||
headerString += " (" + unreadItems.size() + ")";
|
headerString += " (" + getChildrenCount(GROUP_POS_UNREAD) + ")";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
headerTitle.setText(headerString);
|
headerTitle.setText(headerString);
|
||||||
|
|
Loading…
Reference in New Issue