For #16351 - Add divider lines for search dialog

upstream-sync
ekager 4 years ago
parent 2b759e9d6f
commit b9737bde95

@ -467,6 +467,9 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
clear(fill_link_from_clipboard.id, TOP)
connect(fill_link_from_clipboard.id, BOTTOM, pill_wrapper.id, TOP)
clear(fill_link_divider.id, TOP)
connect(fill_link_divider.id, BOTTOM, fill_link_from_clipboard.id, TOP)
applyTo(search_wrapper)
}
}
@ -529,6 +532,9 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
!clipboardUrl.isNullOrEmpty()
fill_link_from_clipboard.isVisible = shouldShowView
fill_link_divider.isVisible = shouldShowView
pill_wrapper_divider.isVisible =
!(shouldShowView && requireComponents.settings.shouldUseBottomToolbar)
clipboard_url.isVisible = shouldShowView
clipboard_title.isVisible = shouldShowView
link_icon.isVisible = shouldShowView

@ -141,6 +141,20 @@
tools:text="url"
tools:visibility="visible" />
<View
android:id="@+id/fill_link_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?neutralFaded"
app:layout_constraintTop_toBottomOf="@id/fill_link_from_clipboard" />
<View
android:id="@+id/pill_wrapper_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?neutralFaded"
app:layout_constraintBottom_toTopOf="@id/pill_wrapper" />
<View
android:id="@+id/pill_wrapper"
android:layout_width="0dp"

Loading…
Cancel
Save