[Android] [PATCH] Download cover art also from http urls

Marc K morckx at gmail.com
Mon Jun 12 22:05:04 CEST 2017


Fixes missing cover art icons for network media.
---
 vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
index d8bbe9845..91f5ffa7d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/AudioUtil.java
@@ -380,6 +380,8 @@ public class AudioUtil {
     public static Bitmap readCoverBitmap(String path, int width) {
         if (path == null)
             return null;
+        if(path.startsWith("http"))
+            return HttpImageLoader.downloadBitmap(path);
         if (path.startsWith("file"))
             path = path.substring(7);
         Bitmap cover = null;
-- 
2.11.0



More information about the Android mailing list