From dc0842f516632030729b31b445528edfd31fc923 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 10 Aug 2019 18:25:28 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/read/ReadActivity.kt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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