From fd8d9c4c0a3930c9b2585cd54ea4288fbb15cceb Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Mon, 9 Jul 2012 18:16:55 -0700 Subject: AccessibilityNodeInfo bounds in screen incorrect if application scale not one V2.0. 1. If the application does not accommodate different screen density the system applies an application scale equal to the device density over the a default density. The AccessibilityNodeInfo coordinates were not reported after applying the compatibility scale, therefore the bounds in parent and screen were not as perceived by the user. bug:6764586 Change-Id: Id9de3de885210d0725d1f3fde38e769b0cfd12a7 --- core/java/android/view/View.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'core/java/android/view/View.java') diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index c269ea3b2b75..ecccbd166585 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -4697,14 +4697,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) { Rect bounds = mAttachInfo.mTmpInvalRect; - final float applicationScale = mAttachInfo.mApplicationScale; getDrawingRect(bounds); - bounds.scale(applicationScale); info.setBoundsInParent(bounds); getBoundsOnScreen(bounds); - bounds.scale(applicationScale); info.setBoundsInScreen(bounds); ViewParent parent = getParentForAccessibility(); -- cgit v1.2.3