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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user