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 468a3d4ba..3b1c92eec 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -24,6 +24,7 @@ import io.legado.app.help.IntentHelp import io.legado.app.help.MediaHelp import io.legado.app.receiver.MediaButtonReceiver import io.legado.app.ui.book.read.ReadBookActivity +import io.legado.app.utils.LogUtils import io.legado.app.utils.postEvent import kotlinx.coroutines.launch import org.jetbrains.anko.toast @@ -107,6 +108,7 @@ class AudioPlayService : BaseService(), mediaPlayer.setDataSource(url) mediaPlayer.prepareAsync() } catch (e: Exception) { + LogUtils.d("AudioPlayService", e.localizedMessage + " " + url) launch { toast(e.localizedMessage + " " + url) stopSelf()