pull/1259/head
gedoor 3 years ago
parent c5807a7a43
commit 21dd23336f
  1. 2
      app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt
  3. 2
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt

@ -156,7 +156,7 @@ class BookInfoActivity :
R.id.menu_login -> viewModel.bookSource?.let { R.id.menu_login -> viewModel.bookSource?.let {
startActivity<SourceLoginActivity> { startActivity<SourceLoginActivity> {
putExtra("sourceUrl", it.bookSourceUrl) putExtra("sourceUrl", it.bookSourceUrl)
putExtra("loginUrl", it.loginUrl) putExtra("loginUrl", it.loginUrl?.url)
putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME]) putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME])
} }
} }

@ -790,7 +790,7 @@ class ReadBookActivity : ReadBookBaseActivity(),
ReadBook.webBook?.bookSource?.let { ReadBook.webBook?.bookSource?.let {
startActivity<SourceLoginActivity> { startActivity<SourceLoginActivity> {
putExtra("sourceUrl", it.bookSourceUrl) putExtra("sourceUrl", it.bookSourceUrl)
putExtra("loginUrl", it.loginUrl) putExtra("loginUrl", it.loginUrl?.url)
putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME]) putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME])
} }
} }

@ -122,7 +122,7 @@ class BookSourceEditActivity :
} else { } else {
startActivity<SourceLoginActivity> { startActivity<SourceLoginActivity> {
putExtra("sourceUrl", it.bookSourceUrl) putExtra("sourceUrl", it.bookSourceUrl)
putExtra("loginUrl", it.loginUrl) putExtra("loginUrl", it.loginUrl?.url)
putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME]) putExtra("userAgent", it.getHeaderMap()[AppConst.UA_NAME])
} }
} }

Loading…
Cancel
Save