Merge pull request #1956 from Bnyro/master

Fill Search Controller When Tapping on Arrow
This commit is contained in:
Bnyro 2022-11-21 14:58:37 +01:00 committed by GitHub
commit c2895abf8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,9 @@ class SearchSuggestionsAdapter(
root.setOnClickListener {
searchView.setQuery(suggestion, true)
}
arrow.setOnClickListener {
searchView.setQuery(suggestion, false)
}
}
}
}

View File

@ -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"