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

Skip to content
Commit b9be295a authored by Tiger Huang's avatar Tiger Huang
Browse files

Prevent the focus state from getting cleared

Before this CL, if the ViewRootImpl receives an input event after
adding the window to display before performing its first traversal,
mAttachInfo.mHasWindowFocus would be set to true in
handleWindowFocusChanged called by deliverInputEvent. And then, when
ViewRootImpl is performing its first traversal,
mAttachInfo.mHasWindowFocus would be cleared, which would make the
ViewRootImpl drop all the key events.

This CL removes the redundant logic about clearing
mAttachInfo.mHasWindowFocus during the first traversal.

Bug: 119700105
Test: atest WindowFocusTests
Change-Id: Ic35752f8e0d7cd7899f238e184bfbca3c8f7ad08
parent 1215943a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment