From a02e0c746a37c311d2b249f67974052e2ecc87d9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 12 Feb 2022 15:39:21 +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/read/config/SpeakEngineDialog.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineDialog.kt index c28b3efa5..ec2cdfadb 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineDialog.kt @@ -70,7 +70,7 @@ class SpeakEngineDialog(val callBack: CallBack) : BaseDialogFragment(R.layout.di override fun onStart() { super.onStart() - setLayout(0.9f, 0.9f) + setLayout(0.2f, 0.9f) } override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { @@ -220,7 +220,9 @@ class SpeakEngineDialog(val callBack: CallBack) : BaseDialogFragment(R.layout.di getItemByLayoutPosition(holder.layoutPosition)?.let { httpTTS -> val id = httpTTS.id.toString() upTts(id) - if (!httpTTS.loginUrl.isNullOrBlank()) { + if (!httpTTS.loginUrl.isNullOrBlank() + && httpTTS.getLoginInfo().isNullOrBlank() + ) { startActivity { putExtra("type", "httpTts") putExtra("key", id)