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) } } }