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

Commit 25854407 authored by Taran Singh's avatar Taran Singh
Browse files

Use local coordinates in CAI#EditorBoundsInfo

EditorBoundsInfo uses local coordiantes, it was mistakenly set with
screen coordinates

Test: atest InputMethodServiceTest
Bug: 217957587

Change-Id: Iadeaa793d1331b6208e4b19036c45120b0185f64
parent 3e4365b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4595,7 +4595,7 @@ public class Editor {

            if (includeEditorBounds) {
                final RectF bounds = new RectF();
                mTextView.getBoundsOnScreen(bounds, false /* clipToParent */);
                bounds.set(0 /* left */, 0 /* top */, mTextView.getWidth(), mTextView.getHeight());
                EditorBoundsInfo.Builder boundsBuilder = new EditorBoundsInfo.Builder();
                //TODO(b/210039666): add Handwriting bounds once they're available.
                builder.setEditorBoundsInfo(