From fcdbc98d23b3ef0bebb0712f8c5dac6e2048ee41 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 15 Aug 2019 10:00:55 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt | 4 ++++ .../java/io/legado/app/ui/changesource/ChangeSourceDialog.kt | 5 +++-- 2 files changed, 7 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 93866c856..56d0657ba 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 @@ -131,4 +131,8 @@ class BookInfoActivity : VMBaseActivity(R.layout.activity_boo changeSourceDialog?.show(supportFragmentManager, ChangeSourceDialog.tag) } } + + override fun changeTo(book: Book) { + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. + } } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt index d81562bf8..bc57ec135 100644 --- a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt @@ -9,6 +9,7 @@ import androidx.appcompat.widget.SearchView import androidx.fragment.app.DialogFragment import androidx.recyclerview.widget.LinearLayoutManager import io.legado.app.R +import io.legado.app.data.entities.Book import io.legado.app.utils.getViewModel import kotlinx.android.synthetic.main.dialog_change_source.* @@ -91,8 +92,8 @@ class ChangeSourceDialog : DialogFragment() { } - public interface CallBack { - + interface CallBack { + fun changeTo(book: Book) } } \ No newline at end of file