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

Commit 58877078 authored by Tiger Huang's avatar Tiger Huang Committed by android-build-merger
Browse files

Refine onPointerDownOutsideFocus

am: 0683fe79

Change-Id: I53d581d752fcd7b096fb24639dd3419884fa2eee
parents 6f85dd3e 0683fe79
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2172,9 +2172,8 @@ void InputDispatcher::dispatchPointerDownOutsideFocus(uint32_t source, int32_t a
        return;
    }

    int32_t displayId = inputWindowHandle->getInfo()->displayId;
    sp<InputWindowHandle> focusedWindowHandle =
            getValueByKey(mFocusedWindowHandlesByDisplay, displayId);
            getValueByKey(mFocusedWindowHandlesByDisplay, mFocusedDisplayId);

    bool hasFocusChanged = !focusedWindowHandle || focusedWindowHandle->getToken() != newToken;