From 9ce96756b7f973e774f05df24eb4d4966b122a09 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 4 Sep 2019 17:41:18 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/explore/ExploreShowActivity.kt | 7 +++++-- .../io/legado/app/ui/explore/ExploreShowViewModel.kt | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 app/src/main/java/io/legado/app/ui/explore/ExploreShowViewModel.kt diff --git a/app/src/main/java/io/legado/app/ui/explore/ExploreShowActivity.kt b/app/src/main/java/io/legado/app/ui/explore/ExploreShowActivity.kt index 9b9566f96..25d480633 100644 --- a/app/src/main/java/io/legado/app/ui/explore/ExploreShowActivity.kt +++ b/app/src/main/java/io/legado/app/ui/explore/ExploreShowActivity.kt @@ -5,11 +5,14 @@ import androidx.recyclerview.widget.DividerItemDecoration import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import io.legado.app.R -import io.legado.app.base.BaseActivity +import io.legado.app.base.VMBaseActivity +import io.legado.app.utils.getViewModel import kotlinx.android.synthetic.main.activity_explore_show.* -class ExploreShowActivity : BaseActivity(R.layout.activity_explore_show), +class ExploreShowActivity : VMBaseActivity(R.layout.activity_explore_show), ExploreShowAdapter.CallBack { + override val viewModel: ExploreShowViewModel + get() = getViewModel(ExploreShowViewModel::class.java) private lateinit var adapter: ExploreShowAdapter diff --git a/app/src/main/java/io/legado/app/ui/explore/ExploreShowViewModel.kt b/app/src/main/java/io/legado/app/ui/explore/ExploreShowViewModel.kt new file mode 100644 index 000000000..de3efd590 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/explore/ExploreShowViewModel.kt @@ -0,0 +1,9 @@ +package io.legado.app.ui.explore + +import android.app.Application +import io.legado.app.base.BaseViewModel + +class ExploreShowViewModel(application: Application) : BaseViewModel(application) { + + +} \ No newline at end of file