pull/48/head
kunfei 5 years ago
parent 760a38f403
commit 791ceeeea0
  1. 4
      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")
}

Loading…
Cancel
Save