From d28d87bfaafa35754b8adcac323038edb2ce82f0 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 6 Jun 2020 20:35:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- .../java/io/legado/app/ui/book/read/ReadBookViewModel.kt | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a5068f755..3d910061e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -116,7 +116,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" //fireBase - implementation 'com.google.firebase:firebase-core:17.4.2' + implementation 'com.google.firebase:firebase-core:17.4.3' implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1' //androidX diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt index 93322a998..b9b27b507 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt @@ -59,9 +59,6 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { } ReadBook.loadContent(resetPageOffset = true) } - if (ReadBook.inBookshelf) { - ReadBook.saveRead() - } } else { isInitFinish = true ReadBook.titleDate.postValue(book.name) @@ -82,9 +79,9 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { ReadBook.callBack?.upContent(resetPageOffset = false) } } - if (ReadBook.inBookshelf) { - ReadBook.saveRead() - } + } + if (ReadBook.inBookshelf) { + ReadBook.saveRead() } }