pull/32/head
kunfei 5 years ago
parent 22d2807a9c
commit 9ce96756b7
  1. 7
      app/src/main/java/io/legado/app/ui/explore/ExploreShowActivity.kt
  2. 9
      app/src/main/java/io/legado/app/ui/explore/ExploreShowViewModel.kt

@ -5,11 +5,14 @@ import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import io.legado.app.R 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.* import kotlinx.android.synthetic.main.activity_explore_show.*
class ExploreShowActivity : BaseActivity(R.layout.activity_explore_show), class ExploreShowActivity : VMBaseActivity<ExploreShowViewModel>(R.layout.activity_explore_show),
ExploreShowAdapter.CallBack { ExploreShowAdapter.CallBack {
override val viewModel: ExploreShowViewModel
get() = getViewModel(ExploreShowViewModel::class.java)
private lateinit var adapter: ExploreShowAdapter private lateinit var adapter: ExploreShowAdapter

@ -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) {
}
Loading…
Cancel
Save