diff options
author | ByteHamster <info@bytehamster.com> | 2018-10-14 10:26:36 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-10-14 10:26:36 +0200 |
commit | a05f386793a7790302502983579b528bb6b46eaa (patch) | |
tree | 0e39d32b9c583f6401aa21ba795293bed170aa8c /app/src/main/java/de/danoeh/antennapod/adapter/itunes | |
parent | 2d4739bd843bf522b06b128308c3284029b4a46c (diff) | |
download | AntennaPod-a05f386793a7790302502983579b528bb6b46eaa.zip |
Upgraded Glide to version 4.8.0
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/adapter/itunes')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/itunes/ItunesAdapter.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/itunes/ItunesAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/itunes/ItunesAdapter.java index e493a2ecc..79c9b63b4 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/itunes/ItunesAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/itunes/ItunesAdapter.java @@ -12,6 +12,8 @@ import android.widget.TextView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; +import com.bumptech.glide.request.RequestOptions; +import de.danoeh.antennapod.core.glide.ApGlideSettings; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; @@ -80,10 +82,11 @@ public class ItunesAdapter extends ArrayAdapter<ItunesAdapter.Podcast> { //Update the empty imageView with the image from the feed Glide.with(context) .load(podcast.imageUrl) - .placeholder(R.color.light_gray) - .diskCacheStrategy(DiskCacheStrategy.NONE) - .fitCenter() - .dontAnimate() + .apply(new RequestOptions() + .placeholder(R.color.light_gray) + .diskCacheStrategy(DiskCacheStrategy.NONE) + .fitCenter() + .dontAnimate()) .into(viewHolder.coverView); //Feed the grid view |