diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt index e9b9c8653..6118f90af 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt @@ -48,6 +48,7 @@ class BookshelfFragment : BaseFragment(R.layout.fragment_bookshelf), BookGroupAd private fun initSearchView() { search_view.visibility = View.VISIBLE search_view.onActionViewExpanded() + search_view.isSubmitButtonEnabled = true search_view.queryHint = getString(R.string.search_book_key) search_view.clearFocus() } diff --git a/app/src/main/res/layout/view_title_bar.xml b/app/src/main/res/layout/view_title_bar.xml index 051bbc03d..c796329ac 100644 --- a/app/src/main/res/layout/view_title_bar.xml +++ b/app/src/main/res/layout/view_title_bar.xml @@ -12,7 +12,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="gone" - android:imeOptions="actionSearch" app:defaultQueryHint="搜索" />