diff options
author | Tiger Huang <tigerhuang@google.com> | 2018-11-26 23:01:07 +0800 |
---|---|---|
committer | Tiger Huang <tigerhuang@google.com> | 2018-11-26 23:19:30 +0800 |
commit | b9be295a359de62483854523a0ed292eb92d635f (patch) | |
tree | 052fee9954131d226ce3be84f404036cdb3a1717 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 1215943a5590267077650a818545a2230478601a (diff) |
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
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions