diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-01-03 19:05:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-03 19:05:03 +0100 |
commit | d7e7684cc0a582d0b41d7616a6f69956625f6221 (patch) | |
tree | 150eb13111166e6b7749b2421c3036a85d624108 /app/src/play | |
parent | 7a92f8a2ba38159253a3dda49cbc0516569a198d (diff) | |
parent | b1ae1f8f2fdaa608880254a714da7db4c00f42e6 (diff) | |
download | AntennaPod-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.java | 7 |
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); |