Merge "Set initial bounds offset to (0,0) so that in-screen bounds reported by AccessibilityNodeInfo are correct"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e3f5edf975
@@ -3903,6 +3903,7 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
|
||||
int[] locationOnScreen = mAttachInfo.mInvalidateChildLocation;
|
||||
getLocationOnScreen(locationOnScreen);
|
||||
bounds.offsetTo(0, 0);
|
||||
bounds.offset(locationOnScreen[0], locationOnScreen[1]);
|
||||
info.setBoundsInScreen(bounds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user