From 02164d24c7205a5a79a8b99df8a85d39124aa503 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 23:11:19 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt | 3 ++- .../main/java/io/legado/app/ui/readbook/ReadBookActivity.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt index b618f29d6..ce7ba7b11 100644 --- a/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt @@ -177,7 +177,8 @@ class BookInfoActivity : VMBaseActivity(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 } } diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index f4a9540e2..57d9d375d 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -176,7 +176,8 @@ class ReadBookActivity : VMBaseActivity(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 } }