[fenix] For https://github.com/mozilla-mobile/fenix/issues/25115 - Remove showWallpapers feature flag

pull/600/head
Gabriel Luong 2 years ago
parent 89bc8ae0de
commit d9f110ee24

@ -72,11 +72,6 @@ object FeatureFlags {
*/
const val showClearSiteData = true
/**
* Enables showing the wallpaper functionality.
*/
const val showWallpapers = true
/**
* Enables history improvement features.
*/

@ -796,10 +796,8 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
@OptIn(DelicateCoroutinesApi::class)
open fun downloadWallpapers() {
if (FeatureFlags.showWallpapers) {
GlobalScope.launch {
components.wallpaperManager.downloadAllRemoteWallpapers()
}
GlobalScope.launch {
components.wallpaperManager.downloadAllRemoteWallpapers()
}
}
}

@ -1073,8 +1073,7 @@ class HomeFragment : Fragment() {
}
private fun shouldEnableWallpaper() =
FeatureFlags.showWallpapers &&
(activity as? HomeActivity)?.themeManager?.currentTheme?.isPrivate?.not() ?: false
(activity as? HomeActivity)?.themeManager?.currentTheme?.isPrivate?.not() ?: false
companion object {
const val ALL_NORMAL_TABS = "all_normal"

@ -147,7 +147,6 @@ class HomeSettingsFragment : PreferenceFragmentCompat() {
)
true
}
isVisible = FeatureFlags.showWallpapers
}
addToRadioGroup(

@ -434,10 +434,9 @@ class Settings(private val appContext: Context) : PreferencesHolder {
* Indicates if the Firefox logo on the home screen should be animated,
* to show users that they can change the wallpaper by tapping on the Firefox logo.
*/
var shouldAnimateFirefoxLogo by featureFlagPreference(
var shouldAnimateFirefoxLogo by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_show_logo_animation),
default = FeatureFlags.showWallpapers,
featureFlag = FeatureFlags.showWallpapers
default = true,
)
/**

@ -37,8 +37,7 @@
<androidx.preference.Preference
android:key="@string/pref_key_wallpapers"
android:title="@string/customize_wallpapers"
app:isPreferenceVisible="false" />
android:title="@string/customize_wallpapers" />
<androidx.preference.PreferenceCategory
android:layout="@layout/preference_cat_style"

Loading…
Cancel
Save