Horis 2 лет назад
Родитель
Сommit
1afa5d6fcf

+ 1 - 0
app/src/main/java/io/legado/app/model/AudioPlay.kt

@@ -127,6 +127,7 @@ object AudioPlay : CoroutineScope by MainScope() {
                         }
                     }.onError {
                         AppLog.put("获取资源链接出错\n$it", it, true)
+                        upLoading(false)
                     }.onFinally {
                         removeLoading(index)
                     }

+ 1 - 0
app/src/main/java/io/legado/app/service/AudioPlayService.kt

@@ -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)