From 5e874aed527cacd58bd83fef546b547f7ddecfe8 Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Wed, 5 Oct 2022 18:47:45 +0800 Subject: [PATCH] fix: typo (#2380) --- .../main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt index bcbb6fc11..b4cf08928 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt @@ -122,7 +122,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) { book.origin = BookType.localTag } else if (remoteBook.lastModify > book.lastCheckTime) { val uri = RemoteBookWebDav.downloadRemoteBook(remoteBook) - book.origin = if (uri.isContentScheme()) uri.toString() else uri.path!! + book.bookUrl = if (uri.isContentScheme()) uri.toString() else uri.path!! } } }