Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a16d1f35 authored by Jay Aliomer's avatar Jay Aliomer
Browse files

ImageWallpaper density and bug fix

Fixes: b/184716192
Test: visual
Change-Id: I94a354c002fd22c41f060071c96e6dec0e0c1d68
parent 2a29cb25
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();
            });