pull/1615/head
kunfei 3 years ago
parent ceab84fa81
commit a02e0c746a
  1. 6
      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() { override fun onStart() {
super.onStart() super.onStart()
setLayout(0.9f, 0.9f) setLayout(0.2f, 0.9f)
} }
override fun onFragmentCreated(view: View, savedInstanceState: Bundle?) { 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 -> getItemByLayoutPosition(holder.layoutPosition)?.let { httpTTS ->
val id = httpTTS.id.toString() val id = httpTTS.id.toString()
upTts(id) upTts(id)
if (!httpTTS.loginUrl.isNullOrBlank()) { if (!httpTTS.loginUrl.isNullOrBlank()
&& httpTTS.getLoginInfo().isNullOrBlank()
) {
startActivity<SourceLoginActivity> { startActivity<SourceLoginActivity> {
putExtra("type", "httpTts") putExtra("type", "httpTts")
putExtra("key", id) putExtra("key", id)

Loading…
Cancel
Save