diff options
| author | 2021-04-09 14:39:38 -0400 | |
|---|---|---|
| committer | 2021-04-09 15:13:22 -0400 | |
| commit | a16d1f3539b971011887b00e717f3bd893da145c (patch) | |
| tree | 07f44f65b6585df6a842a3027b53090489597ff5 | |
| parent | 2a29cb2584a51b62acdc339f0d2f2607a5164c84 (diff) | |
ImageWallpaper density and bug fix
Fixes: b/184716192
Test: visual
Change-Id: I94a354c002fd22c41f060071c96e6dec0e0c1d68
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 4 |
1 files 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(); }); |