For #24780 - Part 3: Show the correct toolbar title if address autofill is enabled

This commit is contained in:
Gabriel Luong 2022-04-14 00:50:21 -04:00 committed by mergify[bot]
parent 61bc862657
commit ed07b8cb61
1 changed files with 5 additions and 1 deletions

View File

@ -113,7 +113,11 @@ class AutofillSettingFragment : BiometricPromptPreferenceFragment() {
override fun onResume() {
super.onResume()
showToolbar(getString(R.string.preferences_credit_cards))
if (requireComponents.settings.addressFeature) {
showToolbar(getString(R.string.preferences_autofill))
} else {
showToolbar(getString(R.string.preferences_credit_cards))
}
SyncPreferenceView(
syncPreference = requirePreference(R.string.pref_key_credit_cards_sync_cards_across_devices),