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

Commit 2955113e authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Fix egregious state check for window focusability. am: 3d0a74a9

am: 0ca8f5bb

Change-Id: Ic53935b12220b21f9ad63106d08869fab4d72128
parents 3542ec37 0ca8f5bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1975,7 +1975,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
            return false;
        }

        final boolean windowsAreFocusable = mAppToken != null && mAppToken.windowsAreFocusable();
        final boolean windowsAreFocusable = mAppToken == null || mAppToken.windowsAreFocusable();
        if (!windowsAreFocusable) {
            // This window can't be an IME target if the app's windows should not be focusable.
            return false;