From ecc20d0be1895b802728a2c5df9db256e46fd0d1 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 4 Nov 2019 10:07:46 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/constant/Bus.kt | 1 - app/src/main/java/io/legado/app/service/AudioPlayService.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/constant/Bus.kt b/app/src/main/java/io/legado/app/constant/Bus.kt index da4f24798..08500bfa6 100644 --- a/app/src/main/java/io/legado/app/constant/Bus.kt +++ b/app/src/main/java/io/legado/app/constant/Bus.kt @@ -14,7 +14,6 @@ object Bus { const val OPEN_CHAPTER = "openChapter" const val REPLACE = "replace" const val AUDIO_NEXT = "audioNext" - const val AUDIO_CUR_POS = "audioCurPos" const val AUDIO_STATE = "audioState" const val AUDIO_PROGRESS = "audioProgress" } \ No newline at end of file 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 1c5aba598..a75bf9ab9 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -67,7 +67,7 @@ class AudioPlayService : BaseService(), launch(IO) { while (isActive) { delay(1000) - postEvent(Bus.AUDIO_CUR_POS, mediaPlayer.currentPosition) + postEvent(Bus.AUDIO_PROGRESS, mediaPlayer.currentPosition) } } }