diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-04-07 11:57:36 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-04-07 11:57:36 +0200 |
commit | 40ab4e415e1b50d444bdc394cc41793f8d4f06f9 (patch) | |
tree | edc50445430f36774b7169a6fca76a4d42cc730f /src/de | |
parent | 7fbd96ad45cf5e1fe9ad023491254c0bc68989d9 (diff) | |
download | AntennaPod-40ab4e415e1b50d444bdc394cc41793f8d4f06f9.zip |
Hide waiting list if empty
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java b/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java index 0e5ef2435..9989fb283 100644 --- a/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java +++ b/src/de/danoeh/antennapod/adapter/ExternalEpisodesListAdapter.java @@ -166,7 +166,7 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter { holder.downloadStatus.setVisibility(View.INVISIBLE); holder.lenSize.setVisibility(View.INVISIBLE); } - + holder.feedImage.setTag(item.getImageLoaderCacheKey()); ImageLoader.getInstance().loadThumbnailBitmap( item, @@ -209,7 +209,12 @@ public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter { @Override public int getGroupCount() { - return 2; + // Hide 'unread items' group if empty + if (manager.getUnreadItemsSize(true) > 0) { + return 2; + } else { + return 1; + } } @Override |