pull/46/head
kunfei 5 years ago
parent e9e9d3b4c7
commit af316f411e
  1. 4
      app/src/main/java/io/legado/app/service/AudioPlayService.kt

@ -124,8 +124,8 @@ class AudioPlayService : BaseService(),
override fun onPrepared(mp: MediaPlayer?) { override fun onPrepared(mp: MediaPlayer?) {
if (pause) return if (pause) return
mp?.start() mp?.start()
postEvent(Bus.AUDIO_PROGRESS, mp?.duration) postEvent(Bus.AUDIO_SIZE, mp?.duration)
handler.postDelayed(mpRunnable, 1000) handler.post(mpRunnable)
} }
override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean { override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean {

Loading…
Cancel
Save