For #17364: Do not show search suggestion hint before starting to type.

upstream-sync
mcarare 3 years ago committed by Mihai Adrian Carare
parent 542071a344
commit d7ad203544

@ -487,7 +487,10 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
private fun updateSearchSuggestionsHintVisibility(state: SearchFragmentState) {
view?.apply {
val showHint = state.showSearchSuggestionsHint && !state.showSearchShortcuts
val showHint = state.showSearchSuggestionsHint &&
!state.showSearchShortcuts &&
state.url != state.query
findViewById<View>(R.id.search_suggestions_hint)?.isVisible = showHint
search_suggestions_hint_divider?.isVisible = showHint
}

Loading…
Cancel
Save