mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
a6a416b02c
commit
24f25f9b32
@ -217,7 +217,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
|
||||
AppWebDav.getBookProgress(book)
|
||||
?: throw NoStackTraceException("没有进度")
|
||||
}.onError {
|
||||
AppLog.put("拉取阅读进度失败", it)
|
||||
AppLog.put("拉取阅读进度失败《${book.name}》", it)
|
||||
}.onSuccess { progress ->
|
||||
if (progress.durChapterIndex < book.durChapterIndex ||
|
||||
(progress.durChapterIndex == book.durChapterIndex
|
||||
@ -226,7 +226,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
|
||||
alertSync?.invoke(progress)
|
||||
} else {
|
||||
ReadBook.setProgress(progress)
|
||||
AppLog.put("自动同步阅读进度成功")
|
||||
AppLog.put("自动同步阅读进度成功《${book.name}》 ${progress.durChapterTitle}")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user