From b712ffee8f5d42c8bf9c27a9f8a10688d4afd07b Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sat, 4 Aug 2012 11:35:05 +0200 Subject: Removed imageview from channellist --- .../antennapod/adapter/MiroGuideChannelListAdapter.java | 6 ------ .../antennapod/fragment/MiroGuideChannellistFragment.java | 15 ++++++++------- src/de/danoeh/antennapod/util/BitmapDecoder.java | 2 +- 3 files changed, 9 insertions(+), 14 deletions(-) (limited to 'src/de') 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 { 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 { } 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, -- cgit v1.2.3