From 791ceeeea0797ad1ce3dd1c15f6b0c9437026489 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 7 Nov 2019 18:07:11 +0800 Subject: [PATCH] up --- 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 b4b56f4d5..a79adb6e4 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -156,7 +156,11 @@ class AudioPlayService : BaseService(), handler.post(mpRunnable) } + /** + * 播放出错 + */ override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean { + postEvent(Bus.AUDIO_STATE, Status.STOP) launch { toast("error: $what $extra") }