diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-04-20 12:40:51 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-04-20 12:40:51 +0200 |
commit | 6fa2fe6c7da1bb9ba2f74fb10db3a2431f9e88a5 (patch) | |
tree | d31dd4ac876da72d4935eab0c83655f8ef83044d /src/de/danoeh | |
parent | 1ad54cb21ada2331ce0b7387a34456921c1be9bf (diff) | |
download | AntennaPod-6fa2fe6c7da1bb9ba2f74fb10db3a2431f9e88a5.zip |
Feedlist displayed wrong value in 'last update' if feed had no episodes
Diffstat (limited to 'src/de/danoeh')
-rw-r--r-- | src/de/danoeh/antennapod/adapter/FeedlistAdapter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java b/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java index df87a83c6..03b46cce5 100644 --- a/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java +++ b/src/de/danoeh/antennapod/adapter/FeedlistAdapter.java @@ -85,6 +85,8 @@ public class FeedlistAdapter extends BaseAdapter { + DateUtils.getRelativeTimeSpanString( feed.getItemAtIndex(true, 0).getPubDate().getTime(), System.currentTimeMillis(), 0, 0)); + } else { + holder.lastUpdate.setText(""); } } holder.numberOfEpisodes.setText(numOfItems |