[Android] Decode artwork mrl
Geoffrey Métais
git at videolan.org
Tue Feb 28 11:26:46 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 28 11:24:33 2017 +0100| [81294ffdbcc0ef8e6ea9b8e905891ba7d1ccc464] | committer: Geoffrey Métais
Decode artwork mrl
> https://code.videolan.org/videolan/vlc-android/commit/81294ffdbcc0ef8e6ea9b8e905891ba7d1ccc464
---
vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java b/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
index 33c760f..19feca7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
@@ -45,7 +45,6 @@ import org.videolan.vlc.R;
import org.videolan.vlc.VLCApplication;
import org.videolan.vlc.media.MediaGroup;
import org.videolan.vlc.util.HttpImageLoader;
-import org.videolan.vlc.util.Strings;
public class AsyncImageLoader {
@@ -138,7 +137,7 @@ public class AsyncImageLoader {
String artworkUrl = item.getArtworkMrl();
if (!TextUtils.isEmpty(artworkUrl) && artworkUrl.startsWith("http"))
return HttpImageLoader.downloadBitmap(artworkUrl);
- return AudioUtil.readCoverBitmap(Strings.removeFileProtocole(item.getArtworkMrl()), width);
+ return AudioUtil.readCoverBitmap(Uri.decode(item.getArtworkMrl()), width);
}
@Override
More information about the Android
mailing list