feat: 优化代码

pull/160/head
kunfei 5 years ago
parent 1f98c7ba00
commit f204bcd7a7
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/TextActionMenu.kt

@ -154,8 +154,8 @@ class TextActionMenu(private val context: Context, private val callBack: CallBac
@SuppressLint("SetJavaScriptEnabled")
private fun readAloud(text: String) {
lastText = text
if (textToSpeech == null) {
lastText = text
textToSpeech = TextToSpeech(context, this)
return
}

Loading…
Cancel
Save