OSDN Git Service

Set initial bounds offset to (0,0) so that in-screen bounds reported by Accessibility...
authorAlan Viverette <alanv@google.com>
Fri, 22 Jul 2011 23:20:41 +0000 (16:20 -0700)
committerAlan Viverette <alanv@google.com>
Fri, 22 Jul 2011 23:20:41 +0000 (16:20 -0700)
Bug: 5063700
Change-Id: I4814c78eb1d6eae007976a057358377560560363

core/java/android/view/View.java

index 0108ecf..37479d0 100644 (file)
@@ -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);