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

Commit 59687971 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix ActivityViewTest#testInputMethod failed in freeform mode"

parents 5e983e27 44fe4e47
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -386,9 +386,15 @@ public class ActivityView extends ViewGroup {

                // Also report this geometry information to InputMethodManagerService.
                // TODO(b/115693908): Unify this logic into the above WMS-based one.
                // TODO(b/138175283): Address the location update when the host of this view is
                //  moving.
                final Matrix matrix = new Matrix();
                final int[] locationOnScreen = new int[2];
                getLocationOnScreen(locationOnScreen);
                final int dx = locationOnScreen[0];
                final int dy = locationOnScreen[1];
                matrix.set(getMatrix());
                matrix.postTranslate(x, y);
                matrix.postTranslate(dx, dy);
                mContext.getSystemService(InputMethodManager.class)
                        .reportActivityView(displayId, matrix);
            }