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

Skip to content
Commit 97cc132f authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Fix TextView#getEditorAndHandwritingBounds used wrong matrix

In ag/28386190, the TextView's local visible bounds is comptued by
1. find the global visible bounds of the TextView in view root's
coordinates.
2. transform the global visible bounds to TextView's coordinates

The issue is that in step 2, we used matrix returned from
View#transformMatrixToLocal which maps *screen coordinates* to
the view's coordinates. The correct matrix should be one that
maps view root's coordinates to view's coordinates.

Bug: 361208016
Test: atest TextViewWithTransformationHandwritingTest
Flag: com.android.text.flags.handwriting_gesture_with_transformation
Change-Id: Ie8cfeb86235bdd14b97d69574c634a293a11f1e6
parent fa6dbc29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment