summaryrefslogtreecommitdiff
path: root/src/de/danoeh
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-08-04 11:35:05 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-08-04 11:35:05 +0200
commitb712ffee8f5d42c8bf9c27a9f8a10688d4afd07b (patch)
treecc797c80dbcd99d3043bb66ede6d32356af7af35 /src/de/danoeh
parentef7a20f056aa723bb9746e3f465f4008205cce6b (diff)
downloadAntennaPod-b712ffee8f5d42c8bf9c27a9f8a10688d4afd07b.zip
Removed imageview from channellist
Diffstat (limited to 'src/de/danoeh')
-rw-r--r--src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java6
-rw-r--r--src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java15
-rw-r--r--src/de/danoeh/antennapod/util/BitmapDecoder.java2
3 files changed, 9 insertions, 14 deletions
diff --git a/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java b/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java
index 4c097c00c..3275ea9d1 100644
--- a/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java
+++ b/src/de/danoeh/antennapod/adapter/MiroGuideChannelListAdapter.java
@@ -33,9 +33,6 @@ public class MiroGuideChannelListAdapter extends ArrayAdapter<MiroChannel> {
convertView = inflater.inflate(R.layout.miroguide_channellist_item, null);
holder.title = (TextView) convertView.findViewById(R.id.txtvTitle);
- holder.cover = (ImageView) convertView
- .findViewById(R.id.imgvChannelimage);
-
convertView.setTag(holder);
} else {
@@ -43,13 +40,10 @@ public class MiroGuideChannelListAdapter extends ArrayAdapter<MiroChannel> {
}
holder.title.setText(channel.getName());
- holder.cover.setTag(channel);
- FeedImageLoader.getInstance().loadMiroGuideThumbnail(channel, holder.cover);
return convertView;
}
static class Holder {
- ImageView cover;
TextView title;
}
diff --git a/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java b/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java
index a2a48f2e2..76ecb1aa1 100644
--- a/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java
+++ b/src/de/danoeh/antennapod/fragment/MiroGuideChannellistFragment.java
@@ -27,9 +27,9 @@ import de.danoeh.antennapod.miroguide.model.MiroChannel;
/**
* Displays a list of MiroChannel objects that were results of a certain
- * MiroGuideService query. If the user reaches the bottom of the list, more entries
- * will be loaded until all entries have been loaded or the maximum number of
- * channels has been reached.
+ * MiroGuideService query. If the user reaches the bottom of the list, more
+ * entries will be loaded until all entries have been loaded or the maximum
+ * number of channels has been reached.
* */
public class MiroGuideChannellistFragment extends SherlockListFragment {
private static final String TAG = "MiroGuideChannellistFragment";
@@ -105,7 +105,8 @@ public class MiroGuideChannellistFragment extends SherlockListFragment {
LayoutInflater inflater = (LayoutInflater) getActivity()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
footer = inflater.inflate(R.layout.loading_footer, null);
- listAdapter = new MiroGuideChannelListAdapter(getActivity(), 0, channels);
+ listAdapter = new MiroGuideChannelListAdapter(getActivity(), 0,
+ channels);
}
@Override
@@ -123,14 +124,14 @@ public class MiroGuideChannellistFragment extends SherlockListFragment {
if (channelLoader != null) {
channelLoader.cancel(true);
}
- FeedImageLoader.getInstance().clearExecutorQueue();
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
- getListView().addFooterView(footer); // footer has to be added before the adapter has been set
+ getListView().addFooterView(footer); // footer has to be added before
+ // the adapter has been set
getListView().setAdapter(listAdapter);
getListView().removeFooterView(footer);
@@ -230,7 +231,7 @@ public class MiroGuideChannellistFragment extends SherlockListFragment {
exception = e;
e.printStackTrace();
} finally {
- //service.close();
+ // service.close();
}
return null;
}
diff --git a/src/de/danoeh/antennapod/util/BitmapDecoder.java b/src/de/danoeh/antennapod/util/BitmapDecoder.java
index d9975a0bb..65664ddd9 100644
--- a/src/de/danoeh/antennapod/util/BitmapDecoder.java
+++ b/src/de/danoeh/antennapod/util/BitmapDecoder.java
@@ -41,7 +41,7 @@ public class BitmapDecoder {
options.inJustDecodeBounds = false;
options.inSampleSize = sampleSize;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
-
+
Bitmap decodedBitmap = BitmapFactory.decodeFile(fileUrl, options);
if (decodedBitmap == null) {
Log.i(TAG,