summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Svetoslav <svetoslavganov@google.com> 2014-06-17 14:47:16 -0700
committer Svetoslav <svetoslavganov@google.com> 2014-06-17 14:54:39 -0700
commit6170cca05eb13cfb44c8d13e7a447cd24f27a62c (patch)
tree97408edf8d84c0488804d6595edc37f89f775458
parentaebc0cd5960e177ff6d58908b6ee536b8a177cdd (diff)
Not touchable windows should not hide windows behind
When computing which windows to report for accessibility we were not reporting windows behind non touchable ones. However, if a window is not-touchable the touch events go to the window behind it. Hence, a not-touchable window should not affect the reproted windows for accessibility. Change-Id: I213a32b33b0986a73d8bbdf0a3e40e6ca6e4261b
-rw-r--r--services/core/java/com/android/server/wm/AccessibilityController.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/wm/AccessibilityController.java b/services/core/java/com/android/server/wm/AccessibilityController.java
index 6cb6b7690d66..d05d0c714126 100644
--- a/services/core/java/com/android/server/wm/AccessibilityController.java
+++ b/services/core/java/com/android/server/wm/AccessibilityController.java
@@ -961,8 +961,6 @@ final class AccessibilityController {
// If the window is not touchable, do not report it but take into account
// the space it takes since the content behind it cannot be touched.
if ((flags & WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE) != 0) {
- unaccountedSpace.op(boundsInScreen, unaccountedSpace,
- Region.Op.DIFFERENCE);
continue;
}