diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-09-11 22:06:25 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-09-11 22:06:25 +0200 |
commit | 98d75f6e61eb3dbaa61c923de8bc5d5acd10a741 (patch) | |
tree | 7f82d126b05ec41ef0fdc0da4f915e0109ce09bb /src/de | |
parent | 7a8b18f3a4755b2c1c4979cd1e1a134ed0986b41 (diff) | |
download | AntennaPod-98d75f6e61eb3dbaa61c923de8bc5d5acd10a741.zip |
improved structure of strings.xml
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java | 18 | ||||
-rw-r--r-- | src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java b/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java index 98948617c..adf522290 100644 --- a/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java +++ b/src/de/danoeh/antennapod/adapter/DownloadLogAdapter.java @@ -22,8 +22,8 @@ import de.danoeh.antennapod.R; /** Displays a list of DownloadStatus entries. */ public class DownloadLogAdapter extends ArrayAdapter<DownloadStatus> { - public DownloadLogAdapter(Context context, - int textViewResourceId, List<DownloadStatus> objects) { + public DownloadLogAdapter(Context context, int textViewResourceId, + List<DownloadStatus> objects) { super(context, textViewResourceId, objects); } @@ -55,18 +55,18 @@ public class DownloadLogAdapter extends ArrayAdapter<DownloadStatus> { holder.title.setText(((FeedImage) feedfile).getTitle()); holder.type.setText("Image"); } - holder.date.setText("On " - + DateUtils.formatSameDayTime(status.getCompletionDate() - .getTime(), System.currentTimeMillis(), - DateFormat.SHORT, DateFormat.SHORT)); + holder.date.setText(DateUtils.formatSameDayTime(status + .getCompletionDate().getTime(), System.currentTimeMillis(), + DateFormat.SHORT, DateFormat.SHORT)); if (status.isSuccessful()) { holder.successful.setTextColor(Color.parseColor("green")); - holder.successful.setText("Download succeeded"); + holder.successful.setText(R.string.download_successful); holder.reason.setVisibility(View.GONE); } else { holder.successful.setTextColor(Color.parseColor("red")); - holder.successful.setText("Download failed"); - holder.reason.setText(DownloadError.getErrorString(getContext(), status.getReason())); + holder.successful.setText(R.string.download_failed); + holder.reason.setText(DownloadError.getErrorString( + getContext(), status.getReason())); } } else { holder = (Holder) convertView.getTag(); diff --git a/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java b/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java index 4346de927..4b887a1e0 100644 --- a/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java +++ b/src/de/danoeh/antennapod/adapter/DownloadlistAdapter.java @@ -74,7 +74,7 @@ public class DownloadlistAdapter extends ArrayAdapter<Downloader> { R.string.image_of_prefix) + image.getFeed().getTitle(); } else { - titleText = "[Image] " + ((FeedImage) feedFile).getTitle(); + titleText = ((FeedImage) feedFile).getTitle(); } } holder.title.setText(titleText); |