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

Commit 326804f8 authored by Alan Viverette's avatar Alan Viverette
Browse files

Set initial bounds offset to (0,0) so that in-screen bounds reported by...

Set initial bounds offset to (0,0) so that in-screen bounds reported by AccessibilityNodeInfo are correct

Bug: 5063700
Change-Id: I4814c78eb1d6eae007976a057358377560560363
parent 0f4e81df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);