|
|
@ -86,14 +86,11 @@ class DefaultBrowserToolbarController(
|
|
|
|
internal var ioScope: CoroutineScope = CoroutineScope(Dispatchers.IO)
|
|
|
|
internal var ioScope: CoroutineScope = CoroutineScope(Dispatchers.IO)
|
|
|
|
|
|
|
|
|
|
|
|
override fun handleToolbarPaste(text: String) {
|
|
|
|
override fun handleToolbarPaste(text: String) {
|
|
|
|
browserAnimator.captureEngineViewAndDrawStatically {
|
|
|
|
val directions = BrowserFragmentDirections.actionBrowserFragmentToSearchFragment(
|
|
|
|
val directions = BrowserFragmentDirections.actionBrowserFragmentToSearchFragment(
|
|
|
|
sessionId = currentSession?.id,
|
|
|
|
sessionId = currentSession?.id,
|
|
|
|
pastedText = text
|
|
|
|
pastedText = text
|
|
|
|
)
|
|
|
|
)
|
|
|
|
navController.nav(R.id.browserFragment, directions, getToolbarNavOptions(activity))
|
|
|
|
|
|
|
|
|
|
|
|
navController.nav(R.id.browserFragment, directions, getToolbarNavOptions(activity))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun handleToolbarPasteAndGo(text: String) {
|
|
|
|
override fun handleToolbarPasteAndGo(text: String) {
|
|
|
@ -112,13 +109,11 @@ class DefaultBrowserToolbarController(
|
|
|
|
Event.SearchBarTapped(Event.SearchBarTapped.Source.BROWSER)
|
|
|
|
Event.SearchBarTapped(Event.SearchBarTapped.Source.BROWSER)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
browserAnimator.captureEngineViewAndDrawStatically {
|
|
|
|
|
|
|
|
val directions = BrowserFragmentDirections.actionBrowserFragmentToSearchFragment(
|
|
|
|
val directions = BrowserFragmentDirections.actionBrowserFragmentToSearchFragment(
|
|
|
|
currentSession?.id
|
|
|
|
currentSession?.id
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
navController.nav(R.id.browserFragment, directions, getToolbarNavOptions(activity))
|
|
|
|
navController.nav(R.id.browserFragment, directions, getToolbarNavOptions(activity))
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun handleTabCounterClick() {
|
|
|
|
override fun handleTabCounterClick() {
|
|
|
|