pull/600/head
Mihai Adrian Carare 4 years ago committed by GitHub
parent 5c9e32efda
commit b931723651

@ -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