diff --git a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
index bd011c04ad..07b735d61a 100644
--- a/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
+++ b/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt
@@ -76,6 +76,7 @@ import mozilla.components.feature.session.PictureInPictureFeature
import mozilla.components.feature.session.SessionFeature
import mozilla.components.feature.session.SwipeRefreshFeature
import mozilla.components.concept.engine.permission.SitePermissions
+import mozilla.components.feature.prompts.address.AddressDelegate
import mozilla.components.feature.session.ScreenOrientationFeature
import mozilla.components.feature.sitepermissions.SitePermissionsFeature
import mozilla.components.lib.state.ext.consumeFlow
@@ -636,6 +637,14 @@ abstract class BaseBrowserFragment :
},
onSelectCreditCard = {
showBiometricPrompt(context)
+ },
+ addressDelegate = object : AddressDelegate {
+ override val addressPickerView
+ get() = binding.addressSelectBar
+ override val onManageAddresses = {
+ val directions = NavGraphDirections.actionGlobalAutofillSettingFragment()
+ findNavController().navigate(directions)
+ }
}
),
owner = this,
diff --git a/app/src/main/res/layout/fragment_browser.xml b/app/src/main/res/layout/fragment_browser.xml
index bd354220e6..f337cb1542 100644
--- a/app/src/main/res/layout/fragment_browser.xml
+++ b/app/src/main/res/layout/fragment_browser.xml
@@ -18,7 +18,7 @@
android:id="@+id/browserLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
- app:layout_constraintBottom_toTopOf="@+id/creditCardSelectBar"
+ app:layout_constraintBottom_toTopOf="@+id/addressSelectBar"
app:layout_constraintTop_toTopOf="parent"
tools:context="browser.BrowserFragment">
@@ -68,13 +68,21 @@
+
+
+ app:layout_constraintTop_toBottomOf="@id/addressSelectBar" />
@color/fx_mobile_text_color_warning
- @style/SelectPromptHeaderTextStyle
- @style/SelectPromptHeaderTextStyle
+ - @style/SelectPromptHeaderTextStyle
@@ -227,6 +228,7 @@
tools:ignore="UnusedResources">@color/fx_mobile_private_text_color_warning
- @style/SelectPromptHeaderTextStyle
- @style/SelectPromptHeaderTextStyle
+ - @style/SelectPromptHeaderTextStyle