summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java
diff options
context:
space:
mode:
authorTom Hennen <tom.hennen@gmail.com>2015-08-15 14:39:11 -0400
committerTom Hennen <tom.hennen@gmail.com>2015-08-15 14:39:11 -0400
commit0dcc1a33f171471d09dd64093df385a173a95271 (patch)
tree2b63d30574e093c717a8b9021441724339c77cab /app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java
parentbf2ba3b7c72f00e70d64fbd938a8f028cb75f3cd (diff)
parent928c438268ec4eab6f05bf2aa60f24e2d10156c1 (diff)
downloadAntennaPod-0dcc1a33f171471d09dd64093df385a173a95271.zip
merged version 1.3 to master
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java
index b85709c5e..743f9fc86 100644
--- a/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java
+++ b/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java
@@ -8,13 +8,15 @@ import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
-import com.squareup.picasso.Picasso;
+import com.bumptech.glide.Glide;
+import com.bumptech.glide.load.engine.DiskCacheStrategy;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
import de.danoeh.antennapod.R;
+import de.danoeh.antennapod.core.glide.ApGlideSettings;
import de.danoeh.antennapod.core.gpoddernet.model.GpodnetPodcast;
/**
@@ -49,9 +51,13 @@ public class PodcastListAdapter extends ArrayAdapter<GpodnetPodcast> {
}
if (StringUtils.isNotBlank(podcast.getLogoUrl())) {
- Picasso.with(convertView.getContext())
+ Glide.with(convertView.getContext())
.load(podcast.getLogoUrl())
- .fit()
+ .placeholder(R.color.light_gray)
+ .error(R.color.light_gray)
+ .diskCacheStrategy(ApGlideSettings.AP_DISK_CACHE_STRATEGY)
+ .fitCenter()
+ .dontAnimate()
.into(holder.image);
}