For #2390 - Adds local feature flag for onboarding
parent
95af2ddcc6
commit
7ac26f5b20
|
@ -31,7 +31,7 @@ class FenixOnboarding(private val context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun userHasBeenOnboarded(): Boolean {
|
fun userHasBeenOnboarded(): Boolean {
|
||||||
if (!BuildConfig.DEBUG || tempFinish) return true
|
if (!BuildConfig.DEBUG || tempFinish || !ENABLED) return true
|
||||||
|
|
||||||
return onboardingPrefs.onboardedVersion == CURRENT_ONBOARDING_VERSION
|
return onboardingPrefs.onboardedVersion == CURRENT_ONBOARDING_VERSION
|
||||||
}
|
}
|
||||||
|
@ -43,5 +43,6 @@ class FenixOnboarding(private val context: Context) {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val CURRENT_ONBOARDING_VERSION = 1
|
private const val CURRENT_ONBOARDING_VERSION = 1
|
||||||
|
private const val ENABLED = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue