summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2021-04-29 22:02:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-04-29 22:02:14 +0000
commit54255f7ab4308e128c8960eed2a24afb217addbf (patch)
tree97bfe66f91455ef4b091c3f06ee45902a848eeca
parent95531c2bb5afb8efda714b1e6a5a8dd4a2e8a67b (diff)
parent370a9d729d84604ed4ccf0bdc2669894921bfd7a (diff)
Merge "Skip setting focused window to the recents animation target" into sc-dev
-rw-r--r--services/core/java/com/android/server/wm/WindowManagerService.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 9e8b6a34e1d5..dfc677278847 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -8123,6 +8123,16 @@ public class WindowManagerService extends IWindowManager.Stub
return;
}
+ if (mRecentsAnimationController != null
+ && mRecentsAnimationController.getTargetAppMainWindow() == touchedWindow) {
+ // If there is an active recents animation and touched window is the target, then ignore
+ // the touch. The target already handles touches using its own input monitor and we
+ // don't want to trigger any lifecycle changes from focusing another window.
+ // TODO(b/186770026): We should remove this once we support multiple resumed activities
+ // while in overview
+ return;
+ }
+
ProtoLog.i(WM_DEBUG_FOCUS_LIGHT, "onPointerDownOutsideFocusLocked called on %s",
touchedWindow);
final DisplayContent displayContent = touchedWindow.getDisplayContent();