diff --git a/app/src/main/java/org/mozilla/fenix/FeatureFlags.kt b/app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
index d621137f94..b420fd9795 100644
--- a/app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
+++ b/app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
@@ -85,4 +85,9 @@ object FeatureFlags {
return Config.channel.isNightlyOrDebug &&
"en-US" == LocaleManager.getCurrentLocale(context)?.toLanguageTag() ?: getSystemDefault().toLanguageTag()
}
+
+ /**
+ * Enables showing the homescreen onboarding card.
+ */
+ val showHomeOnboarding = Config.channel.isDebug
}
diff --git a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlController.kt b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlController.kt
index 078110cc4e..9b956a3ddc 100644
--- a/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlController.kt
+++ b/app/src/main/java/org/mozilla/fenix/home/sessioncontrol/SessionControlController.kt
@@ -27,6 +27,7 @@ import mozilla.components.feature.top.sites.TopSite
import mozilla.components.support.ktx.android.view.showKeyboard
import mozilla.components.support.ktx.kotlin.isUrl
import org.mozilla.fenix.BrowserDirection
+import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.browser.BrowserFragmentDirections
@@ -454,10 +455,12 @@ class DefaultSessionControlController(
}
override fun handleShowOnboardingDialog() {
- navController.nav(
- R.id.homeFragment,
- HomeFragmentDirections.actionGlobalHomeOnboardingDialog()
- )
+ if (FeatureFlags.showHomeOnboarding) {
+ navController.nav(
+ R.id.homeFragment,
+ HomeFragmentDirections.actionGlobalHomeOnboardingDialog()
+ )
+ }
}
override fun handleReadPrivacyNoticeClicked() {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7948f87ac4..23225f3d72 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -255,6 +255,8 @@
Search %s
Search directly from the address bar
+
+
What’s new in Firefox!