Merge pull request #784 from litcc/dev1

fix: 成功后未删除缓存文件
pull/801/head
kunfei 4 years ago committed by GitHub
commit 3b9613b644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -109,7 +109,7 @@ class HttpReadAloudService : BaseReadAloudService(),
val file = getSpeakFileAsMd5(fileName)
//val file = getSpeakFile(index)
file.writeBytes(bytes)
removeSpeakCacheFile(fileName)
if (index == nowSpeak) {
@Suppress("BlockingMethodInNonBlockingContext")
val fis = FileInputStream(file)

Loading…
Cancel
Save