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]) } }