fix: 成功后未删除缓存文件

pull/784/head
litcc 4 years ago
parent 70d7cc7558
commit fa0fc6cb28
No known key found for this signature in database
GPG Key ID: 3BD3FEE45EE0E379
  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 = getSpeakFileAsMd5(fileName)
//val file = getSpeakFile(index) //val file = getSpeakFile(index)
file.writeBytes(bytes) file.writeBytes(bytes)
removeSpeakCacheFile(fileName)
if (index == nowSpeak) { if (index == nowSpeak) {
@Suppress("BlockingMethodInNonBlockingContext") @Suppress("BlockingMethodInNonBlockingContext")
val fis = FileInputStream(file) val fis = FileInputStream(file)

Loading…
Cancel
Save