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

Commit cf2da1bb authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

Fix right/top confusion

As stated, getOriginalCropHints should be the inverse function of
getRelativeCropHints.

Bug: NA, let's not spam bugs
Flag: ACONFIG com.android.window.flags.multi_crop DEVELOPMENT
Test: treehugger
Change-Id: I2a1cb4ebb13056243dbe26b78f99f4eb801bdf02
parent 8505785f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -347,7 +347,7 @@ public class WallpaperCropper {
        for (Rect crop : relativeCropHints) {
            Rect originalRect = new Rect(crop);
            originalRect.scale(wallpaper.mSampleSize);
            originalRect.offset(wallpaper.cropHint.left, wallpaper.cropHint.right);
            originalRect.offset(wallpaper.cropHint.left, wallpaper.cropHint.top);
            result.add(originalRect);
        }
        return result;