2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-02 03:40:16 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/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 86c4a691c7
commit d10ed72be9

View File

@ -113,7 +113,11 @@ class AutofillSettingFragment : BiometricPromptPreferenceFragment() {
override fun onResume() {
super.onResume()
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),