From a16d1f3539b971011887b00e717f3bd893da145c Mon Sep 17 00:00:00 2001 From: Jay Aliomer Date: Fri, 9 Apr 2021 14:39:38 -0400 Subject: ImageWallpaper density and bug fix Fixes: b/184716192 Test: visual Change-Id: I94a354c002fd22c41f060071c96e6dec0e0c1d68 --- packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index 721b7586240c..c8e674171b6e 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -198,8 +198,8 @@ public class ImageWallpaper extends WallpaperService { } mImgHeight = b.getHeight(); mImgWidth = b.getWidth(); - mMiniBitmap = Bitmap.createScaledBitmap(b, Math.round(scale * b.getWidth()), - Math.round(scale * b.getHeight()), false); + mMiniBitmap = Bitmap.createScaledBitmap(b, (int) Math.ceil(scale * b.getWidth()), + (int) Math.ceil(scale * b.getHeight()), false); computeAndNotifyLocalColors(mLocalColorsToAdd, mMiniBitmap); mLocalColorsToAdd.clear(); }); -- cgit v1.2.3-59-g8ed1b