Commit 60c5967d authored by Tomasz Wiszkowski's avatar Tomasz Wiszkowski Committed by Commit Bot

Clear the DropdownViewInfoBuilder state only on focus lost.

This change addresses the issue where zero suggestions are received
ahead of onUrlFocusChange call being completed.
As a result, both deferred keyboard popup and subsequent keyboard
management may cease to function in the zero prefix state.

Bug: 1109330
Change-Id: I5ff5c2ee2103b38ecf9c1b7d8cd53136b1f1a256
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318312
Commit-Queue: Krishna Govind <govind@chromium.org>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791349}
parent 3318cc99
......@@ -206,7 +206,10 @@ class DropdownItemViewInfoListBuilder {
mImageFetcher.clear();
}
mBuiltListHasFullyConcealedElements = false;
if (!hasFocus) {
mBuiltListHasFullyConcealedElements = false;
}
mHeaderProcessor.onUrlFocusChange(hasFocus);
for (int index = 0; index < mPriorityOrderedSuggestionProcessors.size(); index++) {
mPriorityOrderedSuggestionProcessors.get(index).onUrlFocusChange(hasFocus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment