feat: 优化代码

pull/379/head
kunfei 5 years ago
parent 8d5a1877aa
commit d9f7e53338
  1. 4
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -246,8 +246,8 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
@SuppressLint("SetJavaScriptEnabled") @SuppressLint("SetJavaScriptEnabled")
private fun readAloud() { private fun readAloud() {
if (viewModel.textToSpeech.isSpeaking) { if (viewModel.textToSpeech?.isSpeaking == true) {
viewModel.textToSpeech.stop() viewModel.textToSpeech?.stop()
upTtsMenu(false) upTtsMenu(false)
} else { } else {
web_view.settings.javaScriptEnabled = true web_view.settings.javaScriptEnabled = true

Loading…
Cancel
Save