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 17520057d..ee0f3c361 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -326,7 +326,7 @@ class AudioPlayService : BaseService(), AudioPlay.status = Status.PAUSE postEvent(EventBus.AUDIO_STATE, Status.PAUSE) } - postEvent(EventBus.AUDIO_SIZE, exoPlayer.duration) + postEvent(EventBus.AUDIO_SIZE, exoPlayer.duration.toInt()) upMediaMetadata() upPlayProgress() AudioPlay.saveDurChapter(exoPlayer.duration)