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
2 files changed