diff --git a/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarController.kt b/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarController.kt index dc807175e..57221f839 100644 --- a/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarController.kt +++ b/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarController.kt @@ -86,14 +86,11 @@ 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)) - } + val directions = BrowserFragmentDirections.actionBrowserFragmentToSearchFragment( + sessionId = currentSession?.id, + pastedText = text + ) + navController.nav(R.id.browserFragment, directions, getToolbarNavOptions(activity)) } override fun handleToolbarPasteAndGo(text: String) { @@ -112,13 +109,11 @@ 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() {