diff --git a/app/src/main/java/io/legado/app/ui/book/read/TextActionMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/TextActionMenu.kt index 361c7c014..5c8d1d214 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/TextActionMenu.kt +++ b/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 }