Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #21078 - Remove unused creditCardsFeature feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielluong authored and mergify[bot] committed Aug 31, 2021
1 parent 13fd069 commit 9bd6d29
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions app/src/main/java/org/mozilla/fenix/FeatureFlags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ object FeatureFlags {
*/
val addressesFeature = Config.channel.isNightlyOrDebug

/**
* Enables the Credit Cards autofill feature.
*/
const val creditCardsFeature = true

/**
* Enables WebAuthn support.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down

0 comments on commit 9bd6d29

Please sign in to comment.