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

Commit b5f396ac authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Cache w.canReceiveKeys()." into main am: e39d5212

parents a543de34 e39d5212
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -835,11 +835,12 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
     */
    private final ToBooleanFunction<WindowState> mFindFocusedWindow = w -> {
        final ActivityRecord focusedApp = mFocusedApp;
        final boolean canReceiveKeys = w.canReceiveKeys();
        ProtoLog.v(WM_DEBUG_FOCUS, "Looking for focus: %s, flags=%d, canReceive=%b, reason=%s",
                w, w.mAttrs.flags, w.canReceiveKeys(),
                w, w.mAttrs.flags, canReceiveKeys,
                w.canReceiveKeysReason(false /* fromUserTouch */));

        if (!w.canReceiveKeys()) {
        if (!canReceiveKeys) {
            return false;
        }