Merge "Offsets the position of window maganification by the margin"

This commit is contained in:
TreeHugger Robot
2020-07-14 17:28:59 +00:00
committed by Android (Google) Code Review

View File

@@ -258,8 +258,8 @@ class WindowMagnificationController implements View.OnTouchListener, SurfaceHold
| WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
PixelFormat.TRANSPARENT);
params.gravity = Gravity.TOP | Gravity.LEFT;
params.x = mMagnificationFrame.left;
params.y = mMagnificationFrame.top;
params.x = mMagnificationFrame.left - mMirrorSurfaceMargin;
params.y = mMagnificationFrame.top - mMirrorSurfaceMargin;
params.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
params.setTitle(mContext.getString(R.string.magnification_window_title));