summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/adapter
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-05-19 01:05:48 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-05-19 01:05:48 +0200
commit1ee50e81ae8a86bcf2348d956f23c84fbce21b14 (patch)
treefd934ea167aaf9ccee4c73186bcaa766f5715e05 /src/de/danoeh/antennapod/adapter
parentfe7af4265d8ed83c2efc4da05c23420934814150 (diff)
downloadAntennaPod-1ee50e81ae8a86bcf2348d956f23c84fbce21b14.zip
Removed unused resources, reduced number of lint warnings
Diffstat (limited to 'src/de/danoeh/antennapod/adapter')
-rw-r--r--src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java50
-rw-r--r--src/de/danoeh/antennapod/adapter/MiroGuideItemlistAdapter.java58
2 files changed, 0 insertions, 108 deletions
diff --git a/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java b/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java
deleted file mode 100644
index 4361b3af8..000000000
--- a/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package de.danoeh.antennapod.adapter;
-
-import android.content.Context;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.ArrayAdapter;
-import android.widget.TextView;
-import de.danoeh.antennapod.R;
-import de.danoeh.antennapod.miroguide.model.MiroGuideChannel;
-
-import java.util.List;
-
-public class MiroGuideChannelListAdapter extends ArrayAdapter<MiroGuideChannel> {
-
- public MiroGuideChannelListAdapter(Context context, int textViewResourceId,
- List<MiroGuideChannel> objects) {
- super(context, textViewResourceId, objects);
- }
-
- @Override
- public View getView(int position, View convertView, ViewGroup parent) {
- Holder holder;
- MiroGuideChannel channel = getItem(position);
-
- // Inflate Layout
- if (convertView == null) {
- holder = new Holder();
- LayoutInflater inflater = (LayoutInflater) getContext()
- .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-
- convertView = inflater.inflate(R.layout.miroguide_channellist_item, null);
- holder.title = (TextView) convertView.findViewById(R.id.txtvTitle);
-
- convertView.setTag(holder);
- } else {
- holder = (Holder) convertView.getTag();
- }
-
- holder.title.setText(channel.getName());
- return convertView;
- }
-
- static class Holder {
- TextView title;
- }
-
-
-
-}
diff --git a/src/de/danoeh/antennapod/adapter/MiroGuideItemlistAdapter.java b/src/de/danoeh/antennapod/adapter/MiroGuideItemlistAdapter.java
deleted file mode 100644
index 18a4b42cc..000000000
--- a/src/de/danoeh/antennapod/adapter/MiroGuideItemlistAdapter.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package de.danoeh.antennapod.adapter;
-
-import android.content.Context;
-import android.text.format.DateUtils;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.ArrayAdapter;
-import android.widget.TextView;
-import de.danoeh.antennapod.R;
-import de.danoeh.antennapod.miroguide.model.MiroGuideItem;
-
-import java.util.List;
-
-public class MiroGuideItemlistAdapter extends ArrayAdapter<MiroGuideItem> {
-
- public MiroGuideItemlistAdapter(Context context, int textViewResourceId,
- List<MiroGuideItem> objects) {
- super(context, textViewResourceId, objects);
- }
-
- @Override
- public View getView(int position, View convertView, ViewGroup parent) {
- Holder holder;
- MiroGuideItem item = getItem(position);
-
- // Inflate Layout
- if (convertView == null) {
- holder = new Holder();
- LayoutInflater inflater = (LayoutInflater) getContext()
- .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-
- convertView = inflater.inflate(R.layout.miroguide_itemlist_item,
- null);
- holder.title = (TextView) convertView.findViewById(R.id.txtvTitle);
- holder.date = (TextView) convertView.findViewById(R.id.txtvDate);
- convertView.setTag(holder);
- } else {
- holder = (Holder) convertView.getTag();
- }
-
- holder.title.setText(item.getName());
- if (item.getDate() != null) {
- holder.date.setText(DateUtils.getRelativeTimeSpanString(
- item.getDate().getTime(), System.currentTimeMillis(), 0, 0));
- holder.date.setVisibility(View.VISIBLE);
- } else {
- holder.date.setVisibility(View.GONE);
- }
- return convertView;
- }
-
- static class Holder {
- TextView title;
- TextView date;
- }
-
-}