Fix requestRectangleOnScreen not called

The requestRectWithoutFocus boolean was introduced in ag/20641595.

Bug: 263152665
Test: Manual, i.e. verifying requestRectangleOnScreen is called when TextView is focused
Change-Id: I13e2856fc0488526fccb4ab5d945d1d983d7c4d4
This commit is contained in:
Johannes Gallmann
2023-03-24 10:05:03 +00:00
parent b4c32613bc
commit 4de1d1c3e3

View File

@@ -11467,7 +11467,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
changed = true;
}
if (requestRectWithoutFocus && isFocused()) {
if (requestRectWithoutFocus || isFocused()) {
// This offsets because getInterestingRect() is in terms of viewport coordinates, but
// requestRectangleOnScreen() is in terms of content coordinates.