pull/1652/head
kunfei 3 years ago
parent 196843350e
commit 127ae55ac8
  1. 4
      app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/toc/TocActivity.kt

@ -55,7 +55,9 @@ class AudioPlayActivity :
}
private val tocActivityResult = registerForActivityResult(TocActivityResult()) {
it?.let {
if (it.first != AudioPlay.book?.durChapterIndex) {
if (it.first != AudioPlay.book?.durChapterIndex
|| it.second == 0
) {
AudioPlay.skipTo(this, it.first)
}
}

@ -85,7 +85,7 @@ class TocActivity : VMBaseActivity<ActivityChapterListBinding, TocViewModel>() {
R.id.menu_reverse_toc -> viewModel.reverseToc {
setResult(RESULT_OK, Intent().apply {
putExtra("index", it.durChapterIndex)
putExtra("chapterPos", it.durChapterPos)
putExtra("chapterPos", 0)
})
}
R.id.menu_use_replace -> {

Loading…
Cancel
Save