For #6284: Fixes SearchShortcut button functionality when in a session
This makes it so searchShortcuts button works when going from browser -> search
This commit is contained in:
parent
2b955c1a1a
commit
0d5fb67303
|
@ -180,14 +180,13 @@ class AwesomeBarView(
|
|||
|
||||
fun update(state: SearchFragmentState) {
|
||||
updateSearchShortcutsIcon(state)
|
||||
updateSuggestionProvidersVisibility(state)
|
||||
|
||||
// Do not make suggestions based on user's current URL
|
||||
if (state.query == state.session?.url) {
|
||||
// Do not make suggestions based on user's current URL unless it's a search shortcut
|
||||
if (state.query == state.session?.url && !state.showSearchShortcuts) {
|
||||
return
|
||||
}
|
||||
|
||||
updateSuggestionProvidersVisibility(state)
|
||||
|
||||
view.onInputChanged(state.query)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user