summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nergi Rahardi <nergi@google.com> 2022-08-24 16:29:00 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-08-24 16:29:00 +0000
commit632f529b255e2190de02a49b9b94e2d13f3e56d2 (patch)
tree4e67f3fffeaa1ed7e26b0eabc0746e2efdbbdc78
parenteb5d45e57403b6111dca7ab6b2d7bff5c4c0127a (diff)
parent1bacc931cb4bca368350692c813344778fe57eb8 (diff)
Merge "Revert "Replace region intersection change from quickReject to use Region#op""
-rw-r--r--services/core/java/com/android/server/wm/AccessibilityController.java3
1 files changed, 1 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 4153ea5cb936..c04b19558770 100644
--- a/services/core/java/com/android/server/wm/AccessibilityController.java
+++ b/services/core/java/com/android/server/wm/AccessibilityController.java
@@ -1655,8 +1655,7 @@ final class AccessibilityController {
}
// If the window is completely covered by other windows - ignore.
- Region intersectionWindow = mTempRegion1;
- if (!intersectionWindow.op(unaccountedSpace, regionInScreen, Region.Op.INTERSECT)) {
+ if (unaccountedSpace.quickReject(regionInScreen)) {
return false;
}