pull/32/head
kunfei 5 years ago
parent 24f8f259dd
commit 04a22911f4
  1. 2
      app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt

@ -234,7 +234,6 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
durChapterIndex++ durChapterIndex++
prevTextChapter = curTextChapter prevTextChapter = curTextChapter
curTextChapter = nextTextChapter curTextChapter = nextTextChapter
nextTextChapter = null
bookData.value?.let { bookData.value?.let {
launch(IO) { launch(IO) {
for (i in 0..10) { for (i in 0..10) {
@ -251,7 +250,6 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
durChapterIndex-- durChapterIndex--
nextTextChapter = curTextChapter nextTextChapter = curTextChapter
curTextChapter = prevTextChapter curTextChapter = prevTextChapter
prevTextChapter = null
bookData.value?.let { bookData.value?.let {
launch(IO) { launch(IO) {
for (i in -5..0) { for (i in -5..0) {

Loading…
Cancel
Save