Improved time for opening Album, Artist or Now Playing screen
This commit is contained in:
parent
e5146ea279
commit
9cdde459aa
5 changed files with 86 additions and 29 deletions
|
|
@ -0,0 +1,23 @@
|
|||
package com.kabouzeid.gramophone.imageloader;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
import com.kabouzeid.gramophone.helper.bitmapblur.StackBlurManager;
|
||||
import com.nostra13.universalimageloader.core.process.BitmapProcessor;
|
||||
|
||||
/**
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class BlurProcessor implements BitmapProcessor {
|
||||
|
||||
final int blurRadius;
|
||||
|
||||
public BlurProcessor(int blurRadius) {
|
||||
this.blurRadius = blurRadius;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Bitmap process(Bitmap bitmap) {
|
||||
return new StackBlurManager(bitmap).process(blurRadius);
|
||||
}
|
||||
}
|
||||
|
|
@ -72,7 +72,7 @@ public class PhonographImageDownloader extends BaseImageDownloader {
|
|||
return null;
|
||||
}
|
||||
|
||||
int id = Integer.valueOf(data[0].substring(SCHEME_SONG.length()));
|
||||
int id = Integer.parseInt(data[0].substring(SCHEME_SONG.length()));
|
||||
return getMediaProviderAlbumArtInputStream(id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue