From 69c32bb6ff667f40a20b76f619940f1fec7b0cd7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 21 May 2022 20:06:08 +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 --- .../main/java/io/legado/app/ui/about/ReadRecordActivity.kt | 4 ++-- .../io/legado/app/ui/association/FileAssociationActivity.kt | 4 ++-- .../io/legado/app/ui/association/ImportBookSourceDialog.kt | 2 +- .../io/legado/app/ui/association/ImportRssSourceDialog.kt | 2 +- .../app/ui/book/changesource/ChangeChapterSourceDialog.kt | 4 ++-- .../main/java/io/legado/app/ui/book/group/GroupEditDialog.kt | 2 +- .../main/java/io/legado/app/ui/book/search/SearchActivity.kt | 4 ++-- app/src/main/java/io/legado/app/ui/config/ThemeListDialog.kt | 2 +- .../io/legado/app/ui/main/bookshelf/BaseBookshelfFragment.kt | 3 +-- .../io/legado/app/ui/rss/source/manage/RssSourceActivity.kt | 2 +- 10 files changed, 14 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt index a2c84b0db..9a4c6433a 100644 --- a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt +++ b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt @@ -68,7 +68,7 @@ class ReadRecordActivity : BaseActivity() { recyclerView.adapter = adapter readRecord.tvRemove.setOnClickListener { alert(R.string.delete, R.string.sure_del) { - okButton { + yesButton { appDb.readRecordDao.clear() initData() } @@ -144,7 +144,7 @@ class ReadRecordActivity : BaseActivity() { private fun sureDelAlert(item: ReadRecordShow) { alert(R.string.delete) { setMessage(getString(R.string.sure_del_any, item.bookName)) - okButton { + yesButton { appDb.readRecordDao.deleteByName(item.bookName) initData() } diff --git a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt index 3c9edac98..d8bf85a1f 100644 --- a/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt +++ b/app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt @@ -94,10 +94,10 @@ class FileAssociationActivity : title = appCtx.getString(R.string.draw), message = appCtx.getString(R.string.file_not_supported, data.second) ) { - okButton { + yesButton { importBook(data.first) } - cancelButton { + noButton { finish() } } diff --git a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt index a6aacbfd3..3b463ab2d 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt @@ -183,7 +183,7 @@ class ImportBookSourceDialog() : BaseDialogFragment(R.layout.dialog_recycler_vie } } } - noButton() + cancelButton() } } diff --git a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt index 830f0941d..a664f142c 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt @@ -182,7 +182,7 @@ class ImportRssSourceDialog() : BaseDialogFragment(R.layout.dialog_recycler_view } } } - noButton() + cancelButton() } } diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceDialog.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceDialog.kt index fef913c26..aeafb27ba 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeChapterSourceDialog.kt @@ -79,8 +79,8 @@ class ChangeChapterSourceDialog() : BaseDialogFragment(R.layout.dialog_chapter_c launch { alert("搜索结果为空") { setMessage("${searchGroup}分组搜索结果为空,是否切换到全部分组") - cancelButton() - okButton { + noButton() + yesButton { AppConfig.searchGroup = "" viewModel.startSearch() } diff --git a/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt b/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt index 4ce3075c1..a187f7a6f 100644 --- a/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/group/GroupEditDialog.kt @@ -93,7 +93,7 @@ class GroupEditDialog() : BaseDialogFragment(R.layout.dialog_book_group_edit) { private fun deleteGroup(ok: () -> Unit) { alert(R.string.delete, R.string.sure_del) { - okButton { + yesButton { ok.invoke() } noButton() 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 bb6463608..58fdccdef 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 @@ -72,8 +72,8 @@ class SearchActivity : VMBaseActivity