summaryrefslogtreecommitdiff
path: root/ui/glide
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2023-11-05 08:27:34 +0100
committerByteHamster <info@bytehamster.com>2023-11-05 08:27:34 +0100
commitf7a13065a9c92ba26d3686aeb18269f2313bd0b6 (patch)
treef7f7a49aa65acc295cc99dc0e3e870a1f5f4130f /ui/glide
parent2c3fb5610a98d80db25b85fdf0607bfc2b6216fc (diff)
parent8d4270ab87d82dadccab177f6710637b28750c7a (diff)
downloadAntennaPod-f7a13065a9c92ba26d3686aeb18269f2313bd0b6.zip
Merge branch 'master' into develop
Diffstat (limited to 'ui/glide')
-rw-r--r--ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/AudioCoverFetcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/AudioCoverFetcher.java b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/AudioCoverFetcher.java
index d8e265ab5..309afa39d 100644
--- a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/AudioCoverFetcher.java
+++ b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/AudioCoverFetcher.java
@@ -2,13 +2,13 @@ package de.danoeh.antennapod.ui.glide;
import android.content.ContentResolver;
import android.content.Context;
-import android.media.MediaMetadataRetriever;
import android.net.Uri;
import androidx.annotation.NonNull;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import com.bumptech.glide.load.data.DataFetcher;
+import de.danoeh.antennapod.model.MediaMetadataRetrieverCompat;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
@@ -25,7 +25,7 @@ class AudioCoverFetcher implements DataFetcher<InputStream> {
@Override
public void loadData(@NonNull Priority priority, @NonNull DataCallback<? super InputStream> callback) {
- try (MediaMetadataRetriever retriever = new MediaMetadataRetriever()) {
+ try (MediaMetadataRetrieverCompat retriever = new MediaMetadataRetrieverCompat()) {
if (path.startsWith(ContentResolver.SCHEME_CONTENT)) {
retriever.setDataSource(context, Uri.parse(path));
} else {