|
|
@ -382,11 +382,9 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
|
|
|
|
// We delay querying the clipboard by posting this code to the main thread message queue,
|
|
|
|
// We delay querying the clipboard by posting this code to the main thread message queue,
|
|
|
|
// because ClipboardManager will return null if the does app not have input focus yet.
|
|
|
|
// because ClipboardManager will return null if the does app not have input focus yet.
|
|
|
|
lifecycleScope.launch(Dispatchers.Cached) {
|
|
|
|
lifecycleScope.launch(Dispatchers.Cached) {
|
|
|
|
store.dispatch(
|
|
|
|
context?.components?.clipboardHandler?.url?.let { clipboardUrl ->
|
|
|
|
SearchFragmentAction.UpdateClipboardUrl(
|
|
|
|
store.dispatch(SearchFragmentAction.UpdateClipboardUrl(clipboardUrl))
|
|
|
|
requireContext().components.clipboardHandler.url
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|