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

[fenix] For https://github.com/mozilla-mobile/fenix/issues/21078 - Remove unused creditCardsFeature feature flag

This commit is contained in:
Gabriel Luong 2021-08-30 17:53:43 -04:00 committed by mergify[bot]
parent 061e5bf6af
commit 9d12ec623c
3 changed files with 0 additions and 10 deletions

View File

@ -19,11 +19,6 @@ object FeatureFlags {
*/
val addressesFeature = Config.channel.isNightlyOrDebug
/**
* Enables the Credit Cards autofill feature.
*/
const val creditCardsFeature = true
/**
* Enables WebAuthn support.
*/

View File

@ -36,7 +36,6 @@ import mozilla.components.concept.sync.Profile
import mozilla.components.support.ktx.android.view.showKeyboard
import org.mozilla.fenix.BrowserDirection
import org.mozilla.fenix.Config
import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.components.metrics.Event
@ -451,9 +450,6 @@ class SettingsFragment : PreferenceFragmentCompat() {
preferenceSyncOverride?.onPreferenceChangeListener = syncFxAOverrideUpdater
with(requireContext().settings()) {
findPreference<Preference>(
getPreferenceKey(R.string.pref_key_credit_cards)
)?.isVisible = FeatureFlags.creditCardsFeature
findPreference<Preference>(
getPreferenceKey(R.string.pref_key_nimbus_experiments)
)?.isVisible = showSecretDebugMenuThisSession

View File

@ -300,7 +300,6 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
isChecked = syncEnginesStatus.getOrElse(SyncEngine.Bookmarks) { true }
}
requirePreference<CheckBoxPreference>(R.string.pref_key_sync_credit_cards).apply {
isVisible = FeatureFlags.creditCardsFeature
isEnabled = syncEnginesStatus.containsKey(SyncEngine.CreditCards)
isChecked = syncEnginesStatus.getOrElse(SyncEngine.CreditCards) { true }
}