[fenix] For https://github.com/mozilla-mobile/fenix/issues/11825: Removing the last pretty animation 😞

Goodbye, sweet summer child.
pull/600/head
Sawyer Blatz 4 years ago committed by Emily Kager
parent 37f9964f1c
commit 0e63e5b22c

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

Loading…
Cancel
Save