pull/32/head
kunfei 5 years ago
parent d0381ed786
commit 433440609e
  1. 7
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoActivity.kt
  2. 9
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoViewModel.kt

@ -2,9 +2,12 @@ package io.legado.app.ui.bookinfo
import android.os.Bundle import android.os.Bundle
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
class BookInfoActivity : BaseActivity(R.layout.activity_book_info) { class BookInfoActivity : VMBaseActivity<BookInfoViewModel>(R.layout.activity_book_info) {
override val viewModel: BookInfoViewModel
get() = getViewModel(BookInfoViewModel::class.java)
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {

@ -0,0 +1,9 @@
package io.legado.app.ui.bookinfo
import android.app.Application
import io.legado.app.base.BaseViewModel
class BookInfoViewModel(application: Application) : BaseViewModel(application) {
}
Loading…
Cancel
Save