From 941202f6591e2c216b34b30a32af6057927bb695 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Mon, 28 Jan 2013 23:32:00 +0100 Subject: [PATCH] Headers displayed wrong number of episodes in some cases --- .../antennapod/adapter/ExternalEpisodesListAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java b/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java index a318da6d8..d303ae977 100644 --- a/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java +++ b/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java @@ -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);