From b2409a0439b1a19a171858cfa376f9b8de4b6492 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 9 Nov 2019 17:08:57 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/audio/AudioPlayActivity.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt index f687ec0fa..fc3744222 100644 --- a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt +++ b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt @@ -158,17 +158,17 @@ class AudioPlayActivity : VMBaseActivity(R.layout.activity_a fab_play_stop.setImageResource(R.drawable.ic_play_24dp) } } - observeEventSticky(Bus.AUDIO_PROGRESS) { - AudioPlay.durPageIndex = it - if (!adjustProgress) player_progress.progress = it - tv_dur_time.text = DateFormatUtils.format(it.toLong(), "mm:ss") + observeEventSticky(Bus.AUDIO_SUB_TITLE) { + tv_sub_title.text = it } observeEventSticky(Bus.AUDIO_SIZE) { player_progress.max = it tv_all_time.text = DateFormatUtils.format(it.toLong(), "mm:ss") } - observeEventSticky(Bus.AUDIO_SUB_TITLE) { - tv_sub_title.text = it + observeEventSticky(Bus.AUDIO_PROGRESS) { + AudioPlay.durPageIndex = it + if (!adjustProgress) player_progress.progress = it + tv_dur_time.text = DateFormatUtils.format(it.toLong(), "mm:ss") } }