|
|
@ -27,6 +27,7 @@ import mozilla.components.feature.top.sites.TopSite
|
|
|
|
import mozilla.components.support.ktx.android.view.showKeyboard
|
|
|
|
import mozilla.components.support.ktx.android.view.showKeyboard
|
|
|
|
import mozilla.components.support.ktx.kotlin.isUrl
|
|
|
|
import mozilla.components.support.ktx.kotlin.isUrl
|
|
|
|
import org.mozilla.fenix.BrowserDirection
|
|
|
|
import org.mozilla.fenix.BrowserDirection
|
|
|
|
|
|
|
|
import org.mozilla.fenix.FeatureFlags
|
|
|
|
import org.mozilla.fenix.HomeActivity
|
|
|
|
import org.mozilla.fenix.HomeActivity
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.browser.BrowserFragmentDirections
|
|
|
|
import org.mozilla.fenix.browser.BrowserFragmentDirections
|
|
|
@ -454,11 +455,13 @@ class DefaultSessionControlController(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun handleShowOnboardingDialog() {
|
|
|
|
override fun handleShowOnboardingDialog() {
|
|
|
|
|
|
|
|
if (FeatureFlags.showHomeOnboarding) {
|
|
|
|
navController.nav(
|
|
|
|
navController.nav(
|
|
|
|
R.id.homeFragment,
|
|
|
|
R.id.homeFragment,
|
|
|
|
HomeFragmentDirections.actionGlobalHomeOnboardingDialog()
|
|
|
|
HomeFragmentDirections.actionGlobalHomeOnboardingDialog()
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun handleReadPrivacyNoticeClicked() {
|
|
|
|
override fun handleReadPrivacyNoticeClicked() {
|
|
|
|
activity.openToBrowserAndLoad(
|
|
|
|
activity.openToBrowserAndLoad(
|
|
|
|