pull/32/head
kunfei 5 years ago
parent 055b6d9e55
commit fcdbc98d23
  1. 4
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt
  2. 5
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt

@ -131,4 +131,8 @@ class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_boo
changeSourceDialog?.show(supportFragmentManager, ChangeSourceDialog.tag) changeSourceDialog?.show(supportFragmentManager, ChangeSourceDialog.tag)
} }
} }
override fun changeTo(book: Book) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
} }

@ -9,6 +9,7 @@ import androidx.appcompat.widget.SearchView
import androidx.fragment.app.DialogFragment import androidx.fragment.app.DialogFragment
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import io.legado.app.R import io.legado.app.R
import io.legado.app.data.entities.Book
import io.legado.app.utils.getViewModel import io.legado.app.utils.getViewModel
import kotlinx.android.synthetic.main.dialog_change_source.* import kotlinx.android.synthetic.main.dialog_change_source.*
@ -91,8 +92,8 @@ class ChangeSourceDialog : DialogFragment() {
} }
public interface CallBack { interface CallBack {
fun changeTo(book: Book)
} }
} }
Loading…
Cancel
Save