From 69303a5915546b9fd46aeeb145b450b060b00a57 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Wed, 13 May 2015 10:29:52 +0200 Subject: Fix NPE and hide progress bar without media --- .../java/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java/de/danoeh/antennapod/adapter') 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 { -- cgit v1.2.3