Commit c4341e6a authored by Tomasz Wiszkowski's avatar Tomasz Wiszkowski Committed by Commit Bot

Ensure the keyboard is always shown when there are no suggestions.

This change addresses the case where an empty suggestions list is
received, following a very rich suggestions list from previous
Omnibox interaction.

Mediator's internal logic clears up the locally stored
AutocompleteResult as user completes interaction with the Omnibox,
making the subsequently received empty list detected as a no-op.

Bug: 1107562
Change-Id: Ifa50c9aea78e730a0424af411ea5d08c7dd5b015
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2308134
Commit-Queue: Ender <ender@google.com>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790218}
parent dbc6c3c3
......@@ -206,6 +206,7 @@ class DropdownItemViewInfoListBuilder {
mImageFetcher.clear();
}
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