summaryrefslogtreecommitdiff
path: root/app/src/play
diff options
context:
space:
mode:
authorH. Lehmann <ByteHamster@users.noreply.github.com>2019-01-03 19:05:03 +0100
committerGitHub <noreply@github.com>2019-01-03 19:05:03 +0100
commitd7e7684cc0a582d0b41d7616a6f69956625f6221 (patch)
tree150eb13111166e6b7749b2421c3036a85d624108 /app/src/play
parent7a92f8a2ba38159253a3dda49cbc0516569a198d (diff)
parentb1ae1f8f2fdaa608880254a714da7db4c00f42e6 (diff)
downloadAntennaPod-d7e7684cc0a582d0b41d7616a6f69956625f6221.zip
Merge pull request #2859 from ByteHamster/glide-48
Upgraded Glide to version 4.8.0
Diffstat (limited to 'app/src/play')
-rw-r--r--app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java b/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java
index 670a1fb6e..eab085479 100644
--- a/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java
+++ b/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java
@@ -35,6 +35,7 @@ import android.widget.LinearLayout;
import android.widget.TextView;
import com.bumptech.glide.Glide;
+import com.bumptech.glide.request.RequestOptions;
import com.bumptech.glide.request.target.Target;
import java.util.concurrent.ExecutionException;
@@ -463,10 +464,10 @@ public class CustomMRControllerDialog extends MediaRouteControllerDialog {
} else if (iconUri != null) {
try {
art = Glide.with(getContext().getApplicationContext())
- .load(iconUri.toString())
.asBitmap()
- .diskCacheStrategy(ApGlideSettings.AP_DISK_CACHE_STRATEGY)
- .into(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)
+ .load(iconUri.toString())
+ .apply(RequestOptions.diskCacheStrategyOf(ApGlideSettings.AP_DISK_CACHE_STRATEGY))
+ .submit(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)
.get();
} catch (InterruptedException | ExecutionException e) {
Log.e(TAG, "Image art load failed", e);