pull/37/head
kunfei 5 years ago
parent 4408cc2e26
commit 19cb9bd1fe
  1. 8
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt
  2. 6
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt

@ -2,10 +2,14 @@ package io.legado.app.ui.rss.read
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
import kotlinx.android.synthetic.main.activity_rss_read.* import kotlinx.android.synthetic.main.activity_rss_read.*
class ReadRssActivity : BaseActivity(R.layout.activity_rss_read) { class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_read) {
override val viewModel: ReadRssViewModel
get() = getViewModel(ReadRssViewModel::class.java)
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
val description = intent.getStringExtra("description") val description = intent.getStringExtra("description")

@ -1,2 +1,8 @@
package io.legado.app.ui.rss.read package io.legado.app.ui.rss.read
import android.app.Application
import io.legado.app.base.BaseViewModel
class ReadRssViewModel(application: Application) : BaseViewModel(application) {
}
Loading…
Cancel
Save