summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/view/View.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 6f58582..2d58ecf 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -15110,7 +15110,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
final AccessibilityNodeInfo virtualView = viewRoot.getAccessibilityFocusedVirtualView();
if (virtualView != null) {
- virtualView.getBoundsInParent(bounds);
+ virtualView.getBoundsInScreen(bounds);
+ final int[] offset = mAttachInfo.mTmpLocation;
+ getLocationOnScreen(offset);
+ bounds.offset(-offset[0], -offset[1]);
} else {
bounds.set(0, 0, mRight - mLeft, mBottom - mTop);
}