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

Commit 5fc03177 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Fix bug where screenshot jumped to the left

s/height/width/ when setting the X position :)

Bug: 150389556
Test: manual
Change-Id: I48b4b3e2b3eb0f1db6165ca5d68d889362858153
parent 5b55f124
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset
                super.onAnimationEnd(animation);
                mScreenshotView.setScaleX(cornerScale);
                mScreenshotView.setScaleY(cornerScale);
                mScreenshotView.setX(finalPos.x - height * cornerScale / 2f);
                mScreenshotView.setX(finalPos.x - width * cornerScale / 2f);
                mScreenshotView.setY(finalPos.y - height * cornerScale / 2f);
                Rect bounds = new Rect();
                mScreenshotView.getBoundsOnScreen(bounds);