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

Commit 038b737c authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix regression handling negative sizes.

Change-Id: Ib177af2fce9be4dabffa801f64580b1ea7adc673
parent eaf7ce60
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -676,7 +676,8 @@ public class WallpaperManager {

        bm.setDensity(DisplayMetrics.DENSITY_DEVICE);

        if (bm.getWidth() == width && bm.getHeight() == height) {
        if (width <= 0 || height <= 0
                || (bm.getWidth() == width && bm.getHeight() == height)) {
            return bm;
        }