From 872c179cf4a8cd660dede631fc296040c7ea85d8 Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Wed, 24 Jun 2020 15:25:11 -0700 Subject: [PATCH] For #11825: Removing the last pretty animation :disappointed: Goodbye, sweet summer child. --- .../toolbar/BrowserToolbarController.kt | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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() {