From cc5c6b63f0e96e0c0efdd81aa810c7ec8da6a17d Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 24 Oct 2019 09:27:15 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/service/HttpReadAloudService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index 90754a09c..4b277041b 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -24,11 +24,12 @@ class HttpReadAloudService : BaseReadAloudService(), MediaPlayer.OnCompletionListener { private val mediaPlayer = MediaPlayer() - private val ttsFolder = cacheDir.absolutePath + File.separator + "bdTts" + private lateinit var ttsFolder: String private var playingIndex = -1 override fun onCreate() { super.onCreate() + ttsFolder = cacheDir.absolutePath + File.separator + "bdTts" mediaPlayer.setOnErrorListener(this) mediaPlayer.setOnPreparedListener(this) mediaPlayer.setOnCompletionListener(this)