From 91504bbe57f15ade4fa03e7e07bc90427c0a695d Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 16 Dec 2020 10:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b7801ae09..9be53336f 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 @@ -163,7 +163,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { } fun syncBookProgress(book: Book) { - if (!AppConfig.syncBookProgress) + if (AppConfig.syncBookProgress) execute { BookWebDav.getBookProgress(book)?.let { progress -> if (progress.durChapterIndex < book.durChapterIndex ||