From 69c5e69bb728da7a9f14a97c15053839e5aaef42 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 27 Jun 2019 17:47:17 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt | 1 + app/src/main/res/layout/view_title_bar.xml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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="搜索" />