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

Commit 0ca8f5bb authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Fix egregious state check for window focusability.

am: 3d0a74a9

Change-Id: I68aac94729227b30e2ba05bf2e89afae5a9debbf
parents 727b06b4 3d0a74a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1970,7 +1970,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;