Added option to ignore media store artwork and instead loading it directly from the song file

This commit is contained in:
Karim Abou Zeid 2015-07-10 02:24:57 +02:00
commit 1dcc447e52
25 changed files with 194 additions and 106 deletions

View file

@ -423,7 +423,7 @@ public class MusicService extends Service {
}
private void updateRemoteControlClient() {
updateRemoteControlClientImpl(PreferenceUtils.getInstance(this).albumArtOnLockscrenn());
updateRemoteControlClientImpl(PreferenceUtils.getInstance(this).albumArtOnLockscreen());
}
private void updateRemoteControlClientImpl(boolean showAlbumArt) {
@ -435,7 +435,7 @@ public class MusicService extends Service {
.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, song.duration)
.apply();
if (showAlbumArt) {
final String currentAlbumArtUri = MusicUtil.getAlbumArtUri(song.albumId).toString();
final String currentAlbumArtUri = MusicUtil.getSongImageLoaderString(song);
ImageLoader.getInstance().displayImage(currentAlbumArtUri, new NonViewAware(new ImageSize(-1, -1), ViewScaleType.CROP), new SimpleImageLoadingListener() {
@Override
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {