From 68a5889ff22234eba7589b2ab4f752703357345b Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 5 Nov 2019 12:31:01 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/AudioPlayService.kt | 2 ++ 1 file changed, 2 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 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()