pull/32/head
kunfei 5 years ago
parent 0c1a633444
commit 02164d24c7
  1. 3
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt
  2. 3
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -177,7 +177,8 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo
tv_change_source.onClick {
if (changeSourceDialog == null) {
viewModel.bookData.value?.let {
changeSourceDialog = ChangeSourceDialog.newInstance(it.name, it.author)
changeSourceDialog = ChangeSourceDialog
.newInstance(it.name, it.author, it.origin)
changeSourceDialog?.callBack = this
}
}

@ -176,7 +176,8 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
R.id.menu_change_source -> {
if (changeSourceDialog == null) {
viewModel.bookData.value?.let {
changeSourceDialog = ChangeSourceDialog.newInstance(it.name, it.author)
changeSourceDialog = ChangeSourceDialog
.newInstance(it.name, it.author, it.origin)
changeSourceDialog?.callBack = this
}
}

Loading…
Cancel
Save