No Issue - Fixes bug where shortcuts and hint are visible at the same time

pull/35/head
Jeff Boek 4 years ago
parent e067ad5363
commit 4cbbc52ad0

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

Loading…
Cancel
Save