From d58a279ee2ef476fea8ef93446df6d4ac630a9d9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 30 Mar 2022 11:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/AudioPlayService.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/service/AudioPlayService.kt b/app/src/main/java/io/legado/app/service/AudioPlayService.kt index 16ef146e5..afef1ce3a 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -167,6 +167,10 @@ class AudioPlayService : BaseService(), private fun resume() { try { pause = false + if (url.isEmpty()) { + loadContent() + return + } if (!exoPlayer.isPlaying) { exoPlayer.play() }