summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-07-11 12:52:55 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-07-11 12:52:55 +0200
commitfae73dfe2f91129fd209c21094ed9222a48c547a (patch)
treef088eeb7c641cbb2091149b25ad46209399cf6f3 /src/de
parente7f7838a9caa802837e0e055e0fed7794e6b6e69 (diff)
downloadAntennaPod-fae73dfe2f91129fd209c21094ed9222a48c547a.zip
Feedlistitem now shows whether it is refreshing or not
Diffstat (limited to 'src/de')
-rw-r--r--src/de/podfetcher/adapter/FeedlistAdapter.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/de/podfetcher/adapter/FeedlistAdapter.java b/src/de/podfetcher/adapter/FeedlistAdapter.java
index a7e63eca7..7ad98be1b 100644
--- a/src/de/podfetcher/adapter/FeedlistAdapter.java
+++ b/src/de/podfetcher/adapter/FeedlistAdapter.java
@@ -62,7 +62,7 @@ public class FeedlistAdapter extends ArrayAdapter<Feed> {
convertView.setTag(holder);
} else {
holder = (Holder) convertView.getTag();
-
+
}
if (position == selectedItemIndex) {
@@ -73,10 +73,14 @@ public class FeedlistAdapter extends ArrayAdapter<Feed> {
}
holder.title.setText(feed.getTitle());
- holder.lastUpdate.setText("Last Update: "
- + DateUtils.formatSameDayTime(feed.getLastUpdate().getTime(),
- System.currentTimeMillis(), DateFormat.SHORT,
- DateFormat.SHORT));
+ if (DownloadRequester.getInstance().isDownloadingFile(feed)) {
+ holder.lastUpdate.setText(R.string.refreshing_label);
+ } else {
+ holder.lastUpdate.setText("Last Update: "
+ + DateUtils.formatSameDayTime(feed.getLastUpdate()
+ .getTime(), System.currentTimeMillis(),
+ DateFormat.SHORT, DateFormat.SHORT));
+ }
holder.numberOfEpisodes.setText(feed.getItems().size() + " Episodes");
int newItems = feed.getNumOfNewItems();
if (newItems > 0) {