Merge "Use local coordinates in CAI#EditorBoundsInfo" into tm-dev

This commit is contained in:
Taran Singh
2022-03-10 08:06:26 +00:00
committed by Android (Google) Code Review

View File

@@ -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(