mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
1ae61a04b7
commit
7875e73c6b
@ -145,13 +145,14 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
downloadAudio()
|
||||
} catch (e: ConnectException) {
|
||||
removeSpeakCacheFile(fileName)
|
||||
toastOnUi("tts接口网络错误")
|
||||
toastOnUi("tts接口网络错误\n${e.localizedMessage}")
|
||||
} catch (e: IOException) {
|
||||
val file = getSpeakFileAsMd5(fileName)
|
||||
if (file.exists()) {
|
||||
FileUtils.deleteFile(file.absolutePath)
|
||||
}
|
||||
toastOnUi("tts文件解析错误")
|
||||
AppLog.put("tts文件解析错误")
|
||||
toastOnUi("tts文件解析错误\n${e.localizedMessage}")
|
||||
} catch (e: Exception) {
|
||||
removeSpeakCacheFile(fileName)
|
||||
createSpeakFileAsMd5IfNotExist(fileName)
|
||||
|
@ -122,7 +122,7 @@ class SourceLoginDialog : BaseDialogFragment(R.layout.dialog_login) {
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
AppLog.put("登录出错\n${e.localizedMessage}", e)
|
||||
context?.toastOnUi("error:${e.localizedMessage}")
|
||||
context?.toastOnUi("登录出错\n${e.localizedMessage}")
|
||||
e.printOnDebug()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user