From af316f411ed493b08adf98da24d3625316f002ff Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 4 Nov 2019 15:49:57 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/AudioPlayService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 fdd8f7a58..ab0dbc1bc 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -124,8 +124,8 @@ class AudioPlayService : BaseService(), override fun onPrepared(mp: MediaPlayer?) { if (pause) return mp?.start() - postEvent(Bus.AUDIO_PROGRESS, mp?.duration) - handler.postDelayed(mpRunnable, 1000) + postEvent(Bus.AUDIO_SIZE, mp?.duration) + handler.post(mpRunnable) } override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean {