|
|
@ -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 |
|
|
|