OSDN Git Service

Cannot click on partially visible views in touch exploration.
authorSvetoslav Ganov <svetoslavganov@google.com>
Thu, 1 Nov 2012 01:28:49 +0000 (18:28 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Thu, 1 Nov 2012 23:27:05 +0000 (16:27 -0700)
commita94c3194ffa896632f025b983ca57095cd4ba277
tree02c605cc251cd40a9d57782122a07be13796dda3
parent7ab7f538924371a9dd4be7a27a6ae3b4c04b301c
Cannot click on partially visible views in touch exploration.

1. In touch exploration mode the system clicks in the center of the
   accessibility focus rectangle. However, if this rectangle is only
   partially shown on the window or on the screen the system may not
   be able to perform the click, if the accessibility focus center
   is not on the screen, or click on the wrong window, if the access
   focus center is outside of the window.

   This change clips the rectangle to the window bounds which and the
   display bounds. This will ensure no clicks are sent to the wrong
   window and no clicks are sent outside of the screen.

bug:7453839

Change-Id: I79f98971e7ebcbb391c37284467dc76076172c5f
core/java/android/view/ViewRootImpl.java
services/java/com/android/server/accessibility/AccessibilityManagerService.java