Merge "Fix bug where screenshot jumped to the left" into rvc-dev am: aef754d253 am: 04a79624d9

Change-Id: I579aea56485f07df23ec39aca6c4f3d7076f1cac
This commit is contained in:
Automerger Merge Worker
2020-02-28 15:48:17 +00:00

View File

@@ -551,7 +551,7 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset
super.onAnimationEnd(animation); super.onAnimationEnd(animation);
mScreenshotView.setScaleX(cornerScale); mScreenshotView.setScaleX(cornerScale);
mScreenshotView.setScaleY(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); mScreenshotView.setY(finalPos.y - height * cornerScale / 2f);
Rect bounds = new Rect(); Rect bounds = new Rect();
mScreenshotView.getBoundsOnScreen(bounds); mScreenshotView.getBoundsOnScreen(bounds);