For #14744: Also show Fill link from clipboard with search shortcuts. (#15885)

upstream-sync
Mihai Adrian Carare 4 years ago committed by GitHub
parent f59cfd961c
commit 3ed49d8802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -481,8 +481,7 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
private fun updateClipboardSuggestion(searchState: SearchFragmentState, clipboardUrl: String?) {
val shouldShowView = searchState.showClipboardSuggestions &&
searchState.query.isEmpty() &&
!clipboardUrl.isNullOrEmpty() &&
!searchState.showSearchShortcuts
!clipboardUrl.isNullOrEmpty()
fill_link_from_clipboard.visibility = if (shouldShowView) View.VISIBLE else View.GONE
clipboard_url.text = clipboardUrl

Loading…
Cancel
Save