diff --git a/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt b/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt index ede69761d..f7a5ae999 100644 --- a/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt +++ b/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.base.VMBaseActivity import io.legado.app.utils.getViewModel +import kotlinx.android.synthetic.main.activity_read.* +import org.jetbrains.anko.sdk27.listeners.onClick class ReadActivity : VMBaseActivity(R.layout.activity_read) { override val viewModel: ReadViewModel get() = getViewModel(ReadViewModel::class.java) override fun onActivityCreated(savedInstanceState: Bundle?) { - + initView() + viewModel.initData(intent) } + private fun initView() { + tv_chapter_name.onClick { + + } + tv_chapter_url.onClick { + } + } } \ No newline at end of file