Commit 8e70d834 authored by Sébastien Toque's avatar Sébastien Toque

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

parent 42d6c16c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment