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