[Android] use MediaStore as a last chance, because cover quality is not very good in MediaStore

Sébastien Toque git at videolan.org
Mon Oct 8 23:18:21 CEST 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sat Oct  6 15:30:04 2012 +0200| [8e70d8342f40d4eb806c06d7f1ae2798509609d2] | committer: Sébastien Toque

use MediaStore as a last chance, because cover quality is not very good in MediaStore

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8e70d8342f40d4eb806c06d7f1ae2798509609d2
---

 .../src/org/videolan/vlc/gui/audio/AudioUtil.java      |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
index b21f0b9..179a792 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
@@ -161,22 +161,22 @@ public class AudioUtil {
             if (cover != null)
                 return cover;
 
-            // try to get the cover from android MediaStore
-            cover = getCoverFromMediaStore(context, media);
+            // try to get the cover from vlc art cache
+            cover = getCoverFromVlc(context, media);
 
-            //cover not in MediaStore, trying vlc
+            // no found yet, looking in folder
             if (cover == null)
-                cover = getCoverFromVlc(context, media);
+                cover = getCoverFromFolder(context, media);
 
-            //still no cover found, looking in folder ...
+            // try to get the cover from android MediaStore
             if (cover == null)
-                cover = getCoverFromFolder(context, media);
+                cover = getCoverFromMediaStore(context, media);
 
-            //scale down if requested
+            // scale down if requested
             if (cover != null && width > 0)
                 cover = Util.scaleDownBitmap(context, cover, width);
 
-            //store cover into cache
+            // store cover into cache
             if (cover != null)
                 writeBitmap(cover, cachePath);
 



More information about the Android mailing list