From 21dd23336f567c47694cd4797140af19fb4c0d5a Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 21 Aug 2021 22:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/info/BookInfoActivity.kt | 2 +- .../main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 2 +- .../io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index da7872640..17191768c 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -156,7 +156,7 @@ class BookInfoActivity : R.id.menu_login -> viewModel.bookSource?.let { startActivity { putExtra("sourceUrl", it.bookSourceUrl) - putExtra("loginUrl", it.loginUrl) + putExtra("loginUrl", it.loginUrl?.url) putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME]) } } diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index ef4059ae4..9591f1ae2 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -790,7 +790,7 @@ class ReadBookActivity : ReadBookBaseActivity(), ReadBook.webBook?.bookSource?.let { startActivity { putExtra("sourceUrl", it.bookSourceUrl) - putExtra("loginUrl", it.loginUrl) + putExtra("loginUrl", it.loginUrl?.url) putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME]) } } diff --git a/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt index 3f97085c3..70a119f22 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt @@ -122,7 +122,7 @@ class BookSourceEditActivity : } else { startActivity { putExtra("sourceUrl", it.bookSourceUrl) - putExtra("loginUrl", it.loginUrl) + putExtra("loginUrl", it.loginUrl?.url) putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME]) } }