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

Commit e39d5212 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Cache w.canReceiveKeys()." into main

parents 019dab78 1500804c
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;
        }