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

Commit eae7fba6 authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Android (Google) Code Review
Browse files

Merge "Fix IME screenshot position in 3-button landscape mode" into tm-dev

parents 8f003f5f efeee0fd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4071,12 +4071,12 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
            t.setColorSpace(activity.mSurfaceControl, ColorSpace.get(ColorSpace.Named.SRGB));
            t.setLayer(imeSurface, 1);

            final Point surfacePosition = new Point(
                    imeWindow.getFrame().left - mImeTarget.getFrame().left,
                    imeWindow.getFrame().top - mImeTarget.getFrame().top);
            final Point surfacePosition = new Point(imeWindow.getFrame().left,
                    imeWindow.getFrame().top);
            if (imeParent == activity.getSurfaceControl()) {
                t.setPosition(imeSurface, surfacePosition.x, surfacePosition.y);
            } else {
                surfacePosition.offset(-mImeTarget.getFrame().left, -mImeTarget.getFrame().top);
                surfacePosition.offset(mImeTarget.mAttrs.surfaceInsets.left,
                        mImeTarget.mAttrs.surfaceInsets.top);
                t.setPosition(imeSurface, surfacePosition.x, surfacePosition.y);