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

Unverified Commit 0d1dac14 authored by zdi's avatar zdi Committed by Michael Bestas
Browse files

Gallery2: Fix crop size changed after rotate phone.

Set right coordinates for moveCurrentSelection to avoid crop size changed
after rotate phone.

Change-Id: I8e362da4f09cd4d1ec840d9ad9ea13d8cd80e4df
CRs-Fixed: 994922
parent 78b12530
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -289,8 +289,8 @@ public class ImageCrop extends ImageShow {
                    CropObject.MOVE_LEFT,
                    CropObject.MOVE_RIGHT};
            int delta = Math.min(canvas.getWidth(), canvas.getHeight()) / 4;
            int[] dy = {delta, -delta, 0, 0};
            int[] dx = {0, 0, delta, -delta};
            int[] dx = {delta, -delta, 0, 0};
            int[] dy = {0, 0, delta, -delta};

            for (int i = 0; i < sides.length; i++) {
                mCropObj.selectEdge(sides[i]);