From 6efc223b5f37a2f3d1f797a03e8d0331af56e34d Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 22 Aug 2021 23:09:27 +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/model/localBook/UmdFile.kt | 3 +-- .../legado/app/ui/book/cache/CacheActivity.kt | 5 +++-- .../app/ui/book/local/ImportBookActivity.kt | 4 +++- .../app/ui/book/read/ReadBookBaseActivity.kt | 2 +- .../ui/book/read/config/BgTextConfigDialog.kt | 2 +- .../ui/book/read/config/SpeakEngineDialog.kt | 2 +- .../app/ui/book/read/config/TocRegexDialog.kt | 2 +- .../book/source/manage/BookSourceActivity.kt | 8 ++++---- .../book/source/manage/GroupManageDialog.kt | 4 ++-- .../app/ui/config/OtherConfigFragment.kt | 2 +- .../app/ui/config/ThemeConfigFragment.kt | 2 +- .../main/bookshelf/BaseBookshelfFragment.kt | 4 ++-- .../app/ui/replace/GroupManageDialog.kt | 4 ++-- .../app/ui/replace/ReplaceRuleActivity.kt | 2 +- .../ui/rss/source/manage/GroupManageDialog.kt | 4 ++-- .../ui/rss/source/manage/RssSourceActivity.kt | 2 +- app/src/main/res/layout/dialog_edit_text.xml | 19 +++++++++---------- 17 files changed, 36 insertions(+), 35 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/localBook/UmdFile.kt b/app/src/main/java/io/legado/app/model/localBook/UmdFile.kt index 107ab1cab..cb6b83ad1 100644 --- a/app/src/main/java/io/legado/app/model/localBook/UmdFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/UmdFile.kt @@ -130,8 +130,7 @@ class UmdFile(var book: Book) { } private fun getImage(href: String): InputStream? { - TODO("Not yet implemented") + return null } - } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt index 04209e346..c8c91dca2 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt @@ -307,8 +307,9 @@ class CacheActivity : VMBaseActivity() private fun alertExportFileName() { alert(R.string.export_file_name) { val alertBinding = DialogEditTextBinding.inflate(layoutInflater).apply { - textInputLayout.hint = "file name js" + editView.hint = "file name js" editView.setText(AppConfig.bookExportFileName) + tvSummary.text = """使用js返回一个json结构,{"name":"xxx", "author":"yyy"}""" } customView { alertBinding.root } okButton { @@ -333,7 +334,7 @@ class CacheActivity : VMBaseActivity() private fun showCharsetConfig() { alert(R.string.set_charset) { val alertBinding = DialogEditTextBinding.inflate(layoutInflater).apply { - textInputLayout.hint = "charset name" + editView.hint = "charset name" editView.setFilterValues(charsets) editView.setText(AppConfig.exportCharset) } diff --git a/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt index bea70bba4..bde918fa1 100644 --- a/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt @@ -1,5 +1,6 @@ package io.legado.app.ui.book.local +import android.annotation.SuppressLint import android.net.Uri import android.os.Build import android.os.Bundle @@ -100,6 +101,7 @@ class ImportBookActivity : VMBaseActivity - + android:layout_height="wrap_content" + tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" /> - - - + \ No newline at end of file