Increase cover background blur amount

This is really hacky, but looks incredible. Good enough for now.
This commit is contained in:
Andrew Rabert 2019-03-18 21:17:48 -04:00
parent 514eb00797
commit c6729e427b
1 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,14 @@ class BlurBuilder {
private static final float BLUR_RADIUS = 25f; private static final float BLUR_RADIUS = 25f;
public static Bitmap blur(Context context, Bitmap image) { public static Bitmap blur(Context context, Bitmap image) {
Bitmap newImage = image;
for(int i = 0; i<3; i++) {
newImage = blur_real(context, newImage);
}
return newImage;
}
private static Bitmap blur_real(Context context, Bitmap image) {
int width = Math.round(image.getWidth() * BITMAP_SCALE); int width = Math.round(image.getWidth() * BITMAP_SCALE);
int height = Math.round(image.getHeight() * BITMAP_SCALE); int height = Math.round(image.getHeight() * BITMAP_SCALE);