summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-08-26 22:52:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-26 22:52:47 +0000
commit22d8a776cd5914e65797a5c17744dac15944df56 (patch)
tree3be5f1a825a804d09319f5039149eaef9a7b558d /core/java/android
parentf3542fd63f97be96c41a10f6a42e12af66888068 (diff)
parentf86cb678a5afd94505c42497817e7f63427683b9 (diff)
downloadframeworks_base-22d8a776cd5914e65797a5c17744dac15944df56.zip
frameworks_base-22d8a776cd5914e65797a5c17744dac15944df56.tar.gz
frameworks_base-22d8a776cd5914e65797a5c17744dac15944df56.tar.bz2
Merge "Use bounds in screen for better A11y backwards compatibility" into lmp-dev
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);
}