2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26446: add wallpaper oboarding Nimbus flag

This commit is contained in:
mike a 2022-08-15 15:44:33 -07:00 committed by mergify[bot]
parent 96a9b4a773
commit 5bceed7dbd
4 changed files with 28 additions and 2 deletions

View File

@ -102,4 +102,9 @@ object FeatureFlags {
* Enables compose on the tabs tray items. * Enables compose on the tabs tray items.
*/ */
val composeTabsTray = Config.channel.isDebug val composeTabsTray = Config.channel.isDebug
/**
* Enables the wallpaper onboarding.
*/
val wallpaperOnboardingEnabled = Config.channel.isDebug
} }

View File

@ -195,6 +195,15 @@ class Settings(private val appContext: Context) : PreferencesHolder {
default = true default = true
) )
/**
* Indicates if the wallpaper onboarding dialog should be shown.
*/
val showWallpaperOnboarding by lazyFeatureFlagPreference(
key = appContext.getPreferenceKey(R.string.pref_key_wallpapers_onboarding),
featureFlag = FeatureFlags.wallpaperOnboardingEnabled,
default = { onboardScreenSection[OnboardingSection.WALLPAPERS] == true },
)
var openLinksInAPrivateTab by booleanPreference( var openLinksInAPrivateTab by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_open_links_in_a_private_tab), appContext.getPreferenceKey(R.string.pref_key_open_links_in_a_private_tab),
default = false default = false

View File

@ -204,6 +204,7 @@
<string name="pref_key_current_wallpaper" translatable="false">pref_key_current_wallpaper</string> <string name="pref_key_current_wallpaper" translatable="false">pref_key_current_wallpaper</string>
<string name="pref_key_wallpapers_switched_by_logo_tap">pref_key_wallpapers_switched_by_logo_tap</string> <string name="pref_key_wallpapers_switched_by_logo_tap">pref_key_wallpapers_switched_by_logo_tap</string>
<string name="pref_key_show_logo_animation" translatable="false">pref_key_show_logo_animation</string> <string name="pref_key_show_logo_animation" translatable="false">pref_key_show_logo_animation</string>
<string name="pref_key_wallpapers_onboarding" translatable="false">pref_key_wallpapers_onboarding</string>
<string name="pref_key_encryption_key_generated" translatable="false">pref_key_encryption_key_generated</string> <string name="pref_key_encryption_key_generated" translatable="false">pref_key_encryption_key_generated</string>

View File

@ -41,13 +41,22 @@ features:
type: Map<OnboardingSection, Boolean> type: Map<OnboardingSection, Boolean>
default: default:
{ {
"sync-cfr": false "sync-cfr": false,
"wallpapers": false
} }
defaults: defaults:
- channel: nightly - channel: nightly
value: { value: {
"sections-enabled": { "sections-enabled": {
"sync-cfr": false "sync-cfr": false,
"wallpapers": false
}
}
- channel: developer
value: {
"sections-enabled": {
"sync-cfr": false,
"wallpapers": true
} }
} }
nimbus-validation: nimbus-validation:
@ -327,3 +336,5 @@ types:
variants: variants:
sync-cfr: sync-cfr:
description: Sync onboarding CFR. description: Sync onboarding CFR.
wallpapers:
description: Wallpapers onboarding dialog.