diff --git a/app/src/main/java/com/github/libretube/ui/adapters/SearchSuggestionsAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/SearchSuggestionsAdapter.kt index 1abc3d2b3..d05f943e9 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/SearchSuggestionsAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/SearchSuggestionsAdapter.kt @@ -30,6 +30,9 @@ class SearchSuggestionsAdapter( root.setOnClickListener { searchView.setQuery(suggestion, true) } + arrow.setOnClickListener { + searchView.setQuery(suggestion, false) + } } } } diff --git a/app/src/main/res/layout/searchsuggestion_row.xml b/app/src/main/res/layout/searchsuggestion_row.xml index 2639eb876..589932d99 100644 --- a/app/src/main/res/layout/searchsuggestion_row.xml +++ b/app/src/main/res/layout/searchsuggestion_row.xml @@ -31,6 +31,7 @@ android:id="@+id/arrow" android:layout_width="0dp" android:layout_height="wrap_content" + android:background="?attr/selectableItemBackgroundBorderless" android:padding="5dp" android:src="@drawable/ic_arrow_up_left" app:layout_constraintEnd_toEndOf="parent"