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

Commit 3d0a74a9 authored by Winson Chung's avatar Winson Chung
Browse files

Fix egregious state check for window focusability.

- The original check should have not assumed that these are only app
  windows.

Bug: 63614176
Test: Ensure that you can unlock with password
Change-Id: I71a9959378bbd98a8ed6715d67119d38c3daceb5
parent 997e4ac2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1970,7 +1970,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
            return false;
            return false;
        }
        }


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