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

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

Refine onPointerDownOutsideFocus am: 0683fe79

am: e7c4474a

Change-Id: I8d9e8f75e76ad450c83da97d16723d1a52919b26
parents ca15861b e7c4474a
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;