Skip to content

Commit

Permalink
Merge pull request #26173 from brave/android_edit_url
Browse files Browse the repository at this point in the history
Always show URL edit suggestion on Android
  • Loading branch information
SergeyZhukovsky authored Oct 23, 2024
2 parents 2078d2e + 4a2b10b commit 5983171
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,14 @@ List<DropdownItemViewInfo> buildDropdownViewInfoList(AutocompleteResult autocomp
tab != null
? mLeoAutocompleteDelegate.isAutoCompleteEnabled(tab.getWebContents())
: true;
if (!autocompleteEnabled) {
if (!autocompleteEnabled && viewInfoList.size() > 0) {
DropdownItemViewInfo firstObj = viewInfoList.get(0);
viewInfoList.clear();
if (firstObj.processor != null
&& firstObj.processor.getViewTypeId()
== OmniboxSuggestionUiType.EDIT_URL_SUGGESTION) {
viewInfoList.add(firstObj);
}
}

if (isBraveLeoEnabled()
Expand Down

0 comments on commit 5983171

Please sign in to comment.