From 0cdad0747e697c24e1ef74a1d8754022c154c4dc Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 1 Aug 2020 09:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/search/SearchActivity.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 3d12157d5..440af544e 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 @@ -18,8 +18,8 @@ import io.legado.app.constant.PreferKey import io.legado.app.data.entities.Book import io.legado.app.data.entities.SearchBook import io.legado.app.data.entities.SearchKeyword -import io.legado.app.lib.theme.ATH -import io.legado.app.lib.theme.primaryTextColor +import io.legado.app.lib.theme.* +import io.legado.app.lib.theme.ColorUtils import io.legado.app.ui.book.info.BookInfoActivity import io.legado.app.ui.book.source.manage.BookSourceActivity import io.legado.app.ui.widget.recycler.LoadMoreView @@ -163,11 +163,16 @@ class SearchActivity : VMBaseActivity(R.layout.activity_book_se } private fun initOtherView() { - tv_clear_history.onClick { viewModel.clearHistory() } + fb_stop.backgroundTintList = + Selector.colorBuild() + .setDefaultColor(accentColor) + .setPressedColor(ColorUtils.darkenColor(accentColor)) + .create() fb_stop.onClick { viewModel.stop() refresh_progress_bar.isAutoLoading = false } + tv_clear_history.onClick { viewModel.clearHistory() } } private fun initLiveData() {