[fenix] For https://github.com/mozilla-mobile/fenix/issues/12570 - Correctly removes search suggestions when search query and url is empty

pull/600/head
Jeff Boek 4 years ago
parent d2d7fceb94
commit b58a48ca5d

@ -170,7 +170,7 @@ class AwesomeBarView(
updateSuggestionProvidersVisibility(state)
// Do not make suggestions based on user's current URL unless it's a search shortcut
if (state.query == state.url && !state.showSearchShortcuts) {
if (state.query.isNotEmpty() && state.query == state.url && !state.showSearchShortcuts) {
return
}

Loading…
Cancel
Save