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) {
|
fun update(state: SearchFragmentState) {
|
||||||
updateSearchShortcutsIcon(state)
|
updateSearchShortcutsIcon(state)
|
||||||
|
updateSuggestionProvidersVisibility(state)
|
||||||
|
|
||||||
// Do not make suggestions based on user's current URL
|
// Do not make suggestions based on user's current URL unless it's a search shortcut
|
||||||
if (state.query == state.session?.url) {
|
if (state.query == state.session?.url && !state.showSearchShortcuts) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSuggestionProvidersVisibility(state)
|
|
||||||
|
|
||||||
view.onInputChanged(state.query)
|
view.onInputChanged(state.query)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user