Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Don't expose the tab tray to the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Apr 20, 2020
1 parent ad1bb13 commit 1136eb4
Showing 1 changed file with 14 additions and 13 deletions.
Expand Up @@ -14,6 +14,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import mozilla.components.browser.session.Session
import mozilla.components.browser.session.SessionManager
Expand Down Expand Up @@ -316,19 +317,19 @@ class DefaultBrowserToolbarController(
}

private fun animateTabAndNavigateHome() {
navController.navigate(BrowserFragmentDirections.actionBrowserFragmentToTabsTrayFragment())
// scope.launch {
// browserAnimator.beginAnimateOut()
// // Delay for a short amount of time so the browser has time to start animating out
// // before we transition the fragment. This makes the animation feel smoother
// delay(ANIMATION_DELAY)
// if (!navController.popBackStack(R.id.homeFragment, false)) {
// navController.nav(
// R.id.browserFragment,
// BrowserFragmentDirections.actionGlobalHome()
// )
// }
// }
// navController.navigate(BrowserFragmentDirections.actionBrowserFragmentToTabsTrayFragment())
scope.launch {
browserAnimator.beginAnimateOut()
// Delay for a short amount of time so the browser has time to start animating out
// before we transition the fragment. This makes the animation feel smoother
delay(ANIMATION_DELAY)
if (!navController.popBackStack(R.id.homeFragment, false)) {
navController.nav(
R.id.browserFragment,
BrowserFragmentDirections.actionGlobalHome()
)
}
}
}

private fun reportSiteIssue(reportUrl: String, private: Boolean) {
Expand Down

0 comments on commit 1136eb4

Please sign in to comment.