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