diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2015-05-13 10:29:52 +0200 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2015-05-13 10:29:52 +0200 |
commit | 69303a5915546b9fd46aeeb145b450b060b00a57 (patch) | |
tree | 1b7a3ef16e2a5035c4ba859fc2f15fba947acd7b /app/src/main/java/de/danoeh/antennapod/adapter | |
parent | e98041c7baf83d4f3a02af1498349f350872c206 (diff) | |
download | AntennaPod-69303a5915546b9fd46aeeb145b450b060b00a57.zip |
Fix NPE and hide progress bar without media
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java index 1f98ec158..7ad40340d 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java @@ -122,7 +122,11 @@ public class NewEpisodesListAdapter extends BaseAdapter { holder.downloadProgress.setProgress(itemAccess.getItemDownloadProgressPercent(item)); } } + } else { + holder.downloadProgress.setVisibility(View.GONE); + holder.txtvDuration.setVisibility(View.GONE); } + if (itemAccess.isInQueue(item)) { holder.queueStatus.setVisibility(View.VISIBLE); } else { |