Headers displayed wrong number of episodes in some cases

This commit is contained in:
daniel oeh 2013-01-28 23:32:00 +01:00
parent 481d3ea24a
commit 941202f659
1 changed files with 2 additions and 2 deletions

View File

@ -201,12 +201,12 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {
if (groupPosition == 0) {
headerString = context.getString(R.string.queue_label);
if (!queueItems.isEmpty()) {
headerString += " (" + queueItems.size() + ")";
headerString += " (" + getChildrenCount(GROUP_POS_QUEUE) + ")";
}
} else {
headerString = context.getString(R.string.new_label);
if (!unreadItems.isEmpty()) {
headerString += " (" + unreadItems.size() + ")";
headerString += " (" + getChildrenCount(GROUP_POS_UNREAD) + ")";
}
}
headerTitle.setText(headerString);