Loading mobile/android/fenix/app/nimbus.fml.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -732,7 +732,7 @@ features: description: > Whether or not to enable tab strip. type: Boolean default: true default: false allow-on-all-devices: description: > Experimental: When true, bypasses device restrictions and enables use on all devices. Loading Loading @@ -1189,7 +1189,7 @@ features: enabled: description: If true, Mozilla Ads Client support for Top Sites is enabled. type: Boolean default: true default: false private-mode-and-stories-entry-point: description: Feature to enable the Private Mode and Stories Entry Point Experiment. Loading mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt +10 −18 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ class Settings( */ var showBookmarksHomeFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_customization_bookmarks), default = { homescreenSections[HomeScreenSection.BOOKMARKS] == true }, default = { true }, ) /** Loading @@ -197,7 +197,7 @@ class Settings( */ var showRecentTabsFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_recent_tabs), default = { homescreenSections[HomeScreenSection.JUMP_BACK_IN] == true }, default = { true }, ) /** Loading @@ -207,7 +207,7 @@ class Settings( var showPocketRecommendationsFeature by lazyFeatureFlagBooleanPreference( appContext.getPreferenceKey(R.string.pref_key_pocket_homescreen_recommendations), featureFlag = ContentRecommendationsFeatureHelper.isContentRecommendationsFeatureEnabled(appContext), defaultValue = { homescreenSections[HomeScreenSection.POCKET] == true }, defaultValue = { false }, ) /** Loading @@ -234,7 +234,7 @@ class Settings( @Suppress("DEPRECATION") val showPocketSponsoredStories by lazyFeatureFlagBooleanPreference( key = appContext.getPreferenceKey(R.string.pref_key_pocket_sponsored_stories), defaultValue = { homescreenSections[HomeScreenSection.POCKET_SPONSORED_STORIES] == true }, defaultValue = { false }, featureFlag = ContentRecommendationsFeatureHelper.isPocketSponsoredStoriesFeatureEnabled(appContext), ) Loading @@ -243,7 +243,7 @@ class Settings( */ var historyMetadataUIFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_history_metadata_feature), default = { homescreenSections[HomeScreenSection.RECENT_EXPLORATIONS] == true }, default = { true }, ) /** Loading @@ -269,7 +269,7 @@ class Settings( */ var showTopSitesFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_show_top_sites), default = { homescreenSections[HomeScreenSection.TOP_SITES] == true }, default = { false }, ) /** Loading Loading @@ -1205,13 +1205,13 @@ class Settings( get() = false // cookieBannersSection[CookieBannersSection.FEATURE_UI] == 1 val shouldEnableCookieBannerDetectOnly: Boolean get() = cookieBannersSection[CookieBannersSection.FEATURE_SETTING_DETECT_ONLY] == 1 get() = false val shouldEnableCookieBannerGlobalRules: Boolean get() = cookieBannersSection[CookieBannersSection.FEATURE_SETTING_GLOBAL_RULES] == 1 get() = false val shouldEnableCookieBannerGlobalRulesSubFrame: Boolean get() = cookieBannersSection[CookieBannersSection.FEATURE_SETTING_GLOBAL_RULES_SUB_FRAMES] == 1 get() = false /** * Declared as a function for performance purposes. This could be declared as a variable using Loading Loading @@ -2207,15 +2207,7 @@ class Settings( hasUserBeenOnboarded: Boolean, featureEnabled: Boolean = onboardingFeatureEnabled, ): Boolean { val shouldShowByDefaultConditions = featureEnabled && !hasUserBeenOnboarded val shouldShow = shouldShowByDefaultConditions || enablePersistentOnboarding if (shouldShow) { FxNimbus.features.junoOnboarding.recordExposure() } return shouldShow return false } /** Loading Loading
mobile/android/fenix/app/nimbus.fml.yaml +2 −2 Original line number Diff line number Diff line Loading @@ -732,7 +732,7 @@ features: description: > Whether or not to enable tab strip. type: Boolean default: true default: false allow-on-all-devices: description: > Experimental: When true, bypasses device restrictions and enables use on all devices. Loading Loading @@ -1189,7 +1189,7 @@ features: enabled: description: If true, Mozilla Ads Client support for Top Sites is enabled. type: Boolean default: true default: false private-mode-and-stories-entry-point: description: Feature to enable the Private Mode and Stories Entry Point Experiment. Loading
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt +10 −18 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ class Settings( */ var showBookmarksHomeFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_customization_bookmarks), default = { homescreenSections[HomeScreenSection.BOOKMARKS] == true }, default = { true }, ) /** Loading @@ -197,7 +197,7 @@ class Settings( */ var showRecentTabsFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_recent_tabs), default = { homescreenSections[HomeScreenSection.JUMP_BACK_IN] == true }, default = { true }, ) /** Loading @@ -207,7 +207,7 @@ class Settings( var showPocketRecommendationsFeature by lazyFeatureFlagBooleanPreference( appContext.getPreferenceKey(R.string.pref_key_pocket_homescreen_recommendations), featureFlag = ContentRecommendationsFeatureHelper.isContentRecommendationsFeatureEnabled(appContext), defaultValue = { homescreenSections[HomeScreenSection.POCKET] == true }, defaultValue = { false }, ) /** Loading @@ -234,7 +234,7 @@ class Settings( @Suppress("DEPRECATION") val showPocketSponsoredStories by lazyFeatureFlagBooleanPreference( key = appContext.getPreferenceKey(R.string.pref_key_pocket_sponsored_stories), defaultValue = { homescreenSections[HomeScreenSection.POCKET_SPONSORED_STORIES] == true }, defaultValue = { false }, featureFlag = ContentRecommendationsFeatureHelper.isPocketSponsoredStoriesFeatureEnabled(appContext), ) Loading @@ -243,7 +243,7 @@ class Settings( */ var historyMetadataUIFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_history_metadata_feature), default = { homescreenSections[HomeScreenSection.RECENT_EXPLORATIONS] == true }, default = { true }, ) /** Loading @@ -269,7 +269,7 @@ class Settings( */ var showTopSitesFeature by booleanPreference( appContext.getPreferenceKey(R.string.pref_key_show_top_sites), default = { homescreenSections[HomeScreenSection.TOP_SITES] == true }, default = { false }, ) /** Loading Loading @@ -1205,13 +1205,13 @@ class Settings( get() = false // cookieBannersSection[CookieBannersSection.FEATURE_UI] == 1 val shouldEnableCookieBannerDetectOnly: Boolean get() = cookieBannersSection[CookieBannersSection.FEATURE_SETTING_DETECT_ONLY] == 1 get() = false val shouldEnableCookieBannerGlobalRules: Boolean get() = cookieBannersSection[CookieBannersSection.FEATURE_SETTING_GLOBAL_RULES] == 1 get() = false val shouldEnableCookieBannerGlobalRulesSubFrame: Boolean get() = cookieBannersSection[CookieBannersSection.FEATURE_SETTING_GLOBAL_RULES_SUB_FRAMES] == 1 get() = false /** * Declared as a function for performance purposes. This could be declared as a variable using Loading Loading @@ -2207,15 +2207,7 @@ class Settings( hasUserBeenOnboarded: Boolean, featureEnabled: Boolean = onboardingFeatureEnabled, ): Boolean { val shouldShowByDefaultConditions = featureEnabled && !hasUserBeenOnboarded val shouldShow = shouldShowByDefaultConditions || enablePersistentOnboarding if (shouldShow) { FxNimbus.features.junoOnboarding.recordExposure() } return shouldShow return false } /** Loading