From 0f1c604ba33bd6a743a77bffa51d95f0e900cf2f Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 29 Sep 2019 20:02:02 +0800 Subject: [PATCH] up --- .../app/ui/book/search/SearchActivity.kt | 5 ++-- ...ty_search.xml => activity_book_search.xml} | 29 +++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) rename app/src/main/res/layout/{activity_search.xml => activity_book_search.xml} (68%) diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt index 64d5d76f8..5e01ac820 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt @@ -17,12 +17,13 @@ import io.legado.app.ui.book.info.BookInfoActivity import io.legado.app.utils.getViewModel import io.legado.app.utils.invisible import io.legado.app.utils.visible -import kotlinx.android.synthetic.main.activity_search.* +import kotlinx.android.synthetic.main.activity_book_search.* import kotlinx.android.synthetic.main.view_search.* import org.jetbrains.anko.sdk27.listeners.onClick import org.jetbrains.anko.startActivity -class SearchActivity : VMBaseActivity(R.layout.activity_search), SearchAdapter.CallBack { +class SearchActivity : VMBaseActivity(R.layout.activity_book_search), + SearchAdapter.CallBack { override val viewModel: SearchViewModel get() = getViewModel(SearchViewModel::class.java) diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_book_search.xml similarity index 68% rename from app/src/main/res/layout/activity_search.xml rename to app/src/main/res/layout/activity_book_search.xml index 3fd29e772..e4588e73c 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_book_search.xml @@ -36,6 +36,35 @@ + + + + + + + + + + + +