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