From f204bcd7a7d3613d0792fe69f2ed9d5e1c4f8cd2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 17 Mar 2020 15:15:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/read/TextActionMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }