summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alan Viverette <alanv@google.com> 2014-11-18 21:48:11 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-11-18 21:48:13 +0000
commitfb11949d5bb810b39e34ec707fcddde345c474cd (patch)
tree402d300d3a778fa061a7341d684105f597d02f9e
parent2733ea767b691ada9faabfd41f4175d320053682 (diff)
parentd0c73f49b72a4801fc19d2bda2b9239c34c6fa06 (diff)
Merge "Don't ignore accessibility overlays during visibility computation" into lmp-mr1-dev
-rw-r--r--services/core/java/com/android/server/wm/AccessibilityController.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/services/core/java/com/android/server/wm/AccessibilityController.java b/services/core/java/com/android/server/wm/AccessibilityController.java
index 7e6da8b578b0..0cbf03a9025b 100644
--- a/services/core/java/com/android/server/wm/AccessibilityController.java
+++ b/services/core/java/com/android/server/wm/AccessibilityController.java
@@ -992,12 +992,6 @@ final class AccessibilityController {
continue;
}
- // If the window is an accessibility overlay - ignore.
- if (windowState.mAttrs.type ==
- WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY) {
- continue;
- }
-
// Compute the bounds in the screen.
final Rect boundsInScreen = mTempRect;
computeWindowBoundsInScreen(windowState, boundsInScreen);
@@ -1018,8 +1012,14 @@ final class AccessibilityController {
}
}
- unaccountedSpace.op(boundsInScreen, unaccountedSpace,
- Region.Op.REVERSE_DIFFERENCE);
+ // Account for the space this window takes if the window
+ // is not an accessibility overlay which does not change
+ // the reported windows.
+ if (windowState.mAttrs.type !=
+ WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY) {
+ unaccountedSpace.op(boundsInScreen, unaccountedSpace,
+ Region.Op.REVERSE_DIFFERENCE);
+ }
// We figured out what is touchable for the entire screen - done.
if (unaccountedSpace.isEmpty()) {