Skip to content
Snippets Groups Projects
Commit e406b050 authored by Dan Ballard's avatar Dan Ballard Committed by morgan
Browse files

fixup! [android] Disable features and functionality

Bug 43043: Remove credit card autofil ui elements from menu
parent 4cf9c328
Branches
No related tags found
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1154Bug 43043: Remove credit card autofil ui elements from menu
......@@ -255,12 +255,12 @@ class SettingsFragment : PreferenceFragmentCompat() {
requirePreference<Preference>(R.string.pref_key_tabs)
tabSettingsPreference.summary = context?.settings()?.getTabTimeoutString()
val autofillPreference = requirePreference<Preference>(R.string.pref_key_credit_cards)
autofillPreference.title = if (settings.addressFeature) {
getString(R.string.preferences_autofill)
} else {
getString(R.string.preferences_credit_cards_2)
}
// val autofillPreference = requirePreference<Preference>(R.string.pref_key_credit_cards)
// autofillPreference.title = if (settings.addressFeature) {
// getString(R.string.preferences_autofill)
// } else {
// getString(R.string.preferences_credit_cards_2)
// }
// val openLinksInAppsSettingsPreference =
// requirePreference<Preference>(R.string.pref_key_open_links_in_apps)
......@@ -329,10 +329,10 @@ class SettingsFragment : PreferenceFragmentCompat() {
SettingsFragmentDirections.actionSettingsFragmentToSavedLoginsAuthFragment()
}
resources.getString(R.string.pref_key_credit_cards) -> {
SettingsMetrics.autofill.record()
SettingsFragmentDirections.actionSettingsFragmentToAutofillSettingFragment()
}
// resources.getString(R.string.pref_key_credit_cards) -> {
// SettingsMetrics.autofill.record()
// SettingsFragmentDirections.actionSettingsFragmentToAutofillSettingFragment()
// }
resources.getString(R.string.pref_key_accessibility) -> {
SettingsFragmentDirections.actionSettingsFragmentToAccessibilityFragment()
......
......
......@@ -1657,7 +1657,7 @@ class Settings(private val appContext: Context) : PreferencesHolder {
*/
var shouldAutofillCreditCardDetails by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_credit_cards_save_and_autofill_cards),
default = true,
default = BuildConfig.DATA_COLLECTION_DISABLED == false,
)
/**
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment