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