mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -127,6 +127,7 @@ object AudioPlay : CoroutineScope by MainScope() {
|
||||
}
|
||||
}.onError {
|
||||
AppLog.put("获取资源链接出错\n$it", it, true)
|
||||
upLoading(false)
|
||||
}.onFinally {
|
||||
removeLoading(index)
|
||||
}
|
||||
|
||||
@@ -360,6 +360,7 @@ class AudioPlayService : BaseService(),
|
||||
super.onPlayerError(error)
|
||||
AudioPlay.status = Status.STOP
|
||||
postEvent(EventBus.AUDIO_STATE, Status.STOP)
|
||||
AudioPlay.upLoading(false)
|
||||
val errorMsg = "音频播放出错\n${error.errorCodeName} ${error.errorCode}"
|
||||
AppLog.put(errorMsg, error)
|
||||
toastOnUi(errorMsg)
|
||||
|
||||
Reference in New Issue
Block a user