pull/32/head
kunfei 5 years ago
parent 1989e36902
commit dc0842f516
  1. 12
      app/src/main/java/io/legado/app/ui/read/ReadActivity.kt

@ -4,14 +4,24 @@ import android.os.Bundle
import io.legado.app.R import io.legado.app.R
import io.legado.app.base.VMBaseActivity import io.legado.app.base.VMBaseActivity
import io.legado.app.utils.getViewModel import io.legado.app.utils.getViewModel
import kotlinx.android.synthetic.main.activity_read.*
import org.jetbrains.anko.sdk27.listeners.onClick
class ReadActivity : VMBaseActivity<ReadViewModel>(R.layout.activity_read) { class ReadActivity : VMBaseActivity<ReadViewModel>(R.layout.activity_read) {
override val viewModel: ReadViewModel override val viewModel: ReadViewModel
get() = getViewModel(ReadViewModel::class.java) get() = getViewModel(ReadViewModel::class.java)
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
initView()
viewModel.initData(intent)
} }
private fun initView() {
tv_chapter_name.onClick {
}
tv_chapter_url.onClick {
} }
}
}
Loading…
Cancel
Save