diff --git a/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt b/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt
index b670be096d..a6b3213277 100644
--- a/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt
+++ b/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt
@@ -501,9 +501,15 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
searchState.query.isEmpty() &&
!clipboardUrl.isNullOrEmpty()
- fill_link_from_clipboard.visibility = if (shouldShowView) View.VISIBLE else View.GONE
+ fill_link_from_clipboard.isVisible = shouldShowView
+ clipboard_url.isVisible = shouldShowView
+ clipboard_title.isVisible = shouldShowView
+ link_icon.isVisible = shouldShowView
+
clipboard_url.text = clipboardUrl
+ fill_link_from_clipboard.contentDescription = "${clipboard_title.text}, ${clipboard_url.text}."
+
if (clipboardUrl != null && !((activity as HomeActivity).browsingModeManager.mode.isPrivate)) {
requireComponents.core.engine.speculativeConnect(clipboardUrl)
}
diff --git a/app/src/main/res/layout/fragment_search_dialog.xml b/app/src/main/res/layout/fragment_search_dialog.xml
index fec3110b8c..91cdcc8888 100644
--- a/app/src/main/res/layout/fragment_search_dialog.xml
+++ b/app/src/main/res/layout/fragment_search_dialog.xml
@@ -4,6 +4,7 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
+ app:layout_constraintTop_toBottomOf="@+id/toolbar"
+ tools:visibility="visible" />
-
+
-
+
-
-
+
-
+ app:layout_constraintStart_toStartOf="parent" />
-
+
-
-
+