Added option to ignore media store artwork and instead loading it directly from the song file
This commit is contained in:
parent
da92636180
commit
1dcc447e52
25 changed files with 194 additions and 106 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue