Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee234459 authored by Arthur Hung's avatar Arthur Hung
Browse files

Fix WindowFocusTests#testTapNonFocusableWindow failed

If the touched window can't gain focus, should ignore
set focus to display and task.

Bug: 135899255
Test: atest WindowFocusTests#testTapNonFocusableWindow
Change-Id: Ibd23d4cac9cf1f346f36c83ac66d650a54f8461d
(cherry picked from commit 4e6e0ec6)
parent 667d2c91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7690,7 +7690,7 @@ public class WindowManagerService extends IWindowManager.Stub

    private void onPointerDownOutsideFocusLocked(IBinder touchedToken) {
        final WindowState touchedWindow = windowForClientLocked(null, touchedToken, false);
        if (touchedWindow == null) {
        if (touchedWindow == null || !touchedWindow.canReceiveKeys()) {
            return;
        }